-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Change setup.cfg to pyproject.toml #2694
Conversation
*beep* *bop* Hi, human. The Click here to see your results. |
setup.cfg
Outdated
@@ -88,4 +88,4 @@ exclude_lines = | |||
[options.entry_points] | |||
console_scripts = |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
test = ['pytest-astropy'] |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?
There was a problem hiding this 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
📝 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?
☑️ Checklist
build_docs
label