-
Notifications
You must be signed in to change notification settings - Fork 246
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
Configuring with pyproject.toml #996
Configuring with pyproject.toml #996
Conversation
@WilliamBergamin Thanks for proposing this! As long as the release process goes well, migrating to pyproject.toml should be a good way to go! Can you adjust the CI build settings to pass the tests? Also, checking if the package upload works using https://test.pypi.org/ would be safe. |
.github/workflows/codecov.yml
Outdated
@@ -28,10 +28,10 @@ jobs: | |||
run: | | |||
python setup.py install |
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.
Perhaps, need changes on this part
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.
Great point, I've fixed up the CI parts to work with the new changes
NOTE: there are some limitation with python 3.6 that required work arounds
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #996 +/- ##
=======================================
Coverage 91.76% 91.76%
=======================================
Files 181 181
Lines 6312 6312
=======================================
Hits 5792 5792
Misses 520 520 ☔ View full report in Codecov by Sentry. |
@seratch I've deployed a test package to https://test.pypi.org/project/slack-bolt/ and everything seems to be the same apart from the "Homepage" link being renamed to "homepage" Could you take a look and let me know if you find any discrepancies |
Thank you! I just confirmed the package file uploaded to test PyPI works without any issues. |
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.
One nit comment but this looks great to me! After fixing the minor error in a comment, you can merge this PR.
Also, when you merge this, please use "Squash and merge" button to make the diffs simpler |
Co-authored-by: Kazuhiro Sera <[email protected]>
These changes started out as an exploration of the
pyproject.toml
file. In the process I learnt that since PEP 621, the Python community selectedpyproject.toml
as a standard way of specifying project metadata.This PR aims to introduce changes that make the
pyproject.toml
the default configuration file for bolt-python, there are some slight differences but the testing, packaging and publishing behaviors should remain the same as they wereI've opted to rely on the Requirements File Format pattern to import test dependencies since it yields a clear distinction between the project dependencies and the development dependencies
Is the
pyproject.toml
configuration pattern something we would want to adopt in our python projects?Category
slack_bolt.App
and/or its core componentsslack_bolt.async_app.AsyncApp
and/or its core componentsslack_bolt.adapter
/docs
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
./scripts/install_all_and_run_tests.sh
after making the changes.