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

Change setup.cfg to pyproject.toml #2694

Merged

Conversation

KasukabeDefenceForce
Copy link
Contributor

📝 Description

Type: 🎢 infrastructure

This PR aims at shifting all the configurations from the setup.cfg to pyproject.toml.

📌 Resources

https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Other method (describe)
  • My changes can't be tested (explain why)

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

@tardis-bot
Copy link
Contributor

tardis-bot commented Jul 9, 2024

*beep* *bop*

Hi, human.

The docs workflow has succeeded ✔️

Click here to see your results.

@KasukabeDefenceForce KasukabeDefenceForce marked this pull request as ready for review July 10, 2024 11:50
pyproject.toml Outdated Show resolved Hide resolved
setup.cfg Outdated
@@ -88,4 +88,4 @@ exclude_lines =
[options.entry_points]
console_scripts =
Copy link
Member

Choose a reason for hiding this comment

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

In the end, we want to remove setup.cfg

You want to remove this and then make sure the tests pass.

Copy link
Member

Choose a reason for hiding this comment

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

also I will suggest adding some reference links in the pr description on why we're switching from setup.cfg to pyproject.toml

Copy link
Member

@atharva-2001 atharva-2001 Jul 10, 2024

Choose a reason for hiding this comment

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

on a side note, we also want to perhaps remove setup.py- these files are outdated and python community has better ways for packaging if you could research it would be great.

pyproject.toml Outdated Show resolved Hide resolved
@KasukabeDefenceForce KasukabeDefenceForce marked this pull request as draft July 10, 2024 12:51
@KasukabeDefenceForce KasukabeDefenceForce marked this pull request as ready for review July 10, 2024 15:37
pyproject.toml Outdated
dynamic = ["version"]

[project.optional-dependencies]
test = ['pytest-astropy']
Copy link
Contributor

Choose a reason for hiding this comment

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

Use double quotes consistently

pyproject.toml Outdated

[tool.pytest.ini_options]
testpaths = ["tardis"]
# astropy_header = true
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The tests were failing after I added those two lines so I was testing which is exactly causing the tests to fail.

pyproject.toml Outdated
[tool.pytest.ini_options]
testpaths = ["tardis"]
# astropy_header = true
# doctest_plus = "disabled"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we keeping a commented out line?

Copy link
Contributor

@andrewfullard andrewfullard left a comment

Choose a reason for hiding this comment

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

Please resolve my comments

@andrewfullard andrewfullard self-requested a review July 10, 2024 19:24
@andrewfullard andrewfullard enabled auto-merge (squash) July 10, 2024 19:25
@andrewfullard andrewfullard merged commit 26cd336 into tardis-sn:master Jul 10, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants