-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: migrate from setup.py/setuptools to pyproject.toml/hatch #99
base: release
Are you sure you want to change the base?
feat: migrate from setup.py/setuptools to pyproject.toml/hatch #99
Conversation
Faraz32123
commented
Jan 24, 2025
•
edited by DawoudSheraz
Loading
edited by DawoudSheraz
- migrate from setup.py/setuptools to pyproject.toml/hatch.
- This commit will keep the tutor-discovery in sync with the tutor core. For more details view this PR in tutor: feat: migrate from setup.py/setuptools to pyproject.toml/hatch tutor#1163.
- Completes tutor-discovery action item from [Epic] Migrate from setup.py/setuptools to pyproject.toml/hatch tutor#1190
I trust your judgment and I'm removing myself from the reviewers of this PR. |
c383e30
to
527251d
Compare
@@ -18,10 +18,8 @@ jobs: | |||
uses: actions/setup-python@v5 | |||
with: | |||
python-version: ${{ matrix.python-version }} | |||
- name: Upgrade pip | |||
run: python -m pip install --upgrade pip setuptools |
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.
should we not keep pip in here?
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.
I think it's just extra, as we are only upgrading pip, it's pre-compiled version is sufficient I think.
Plus, it's synchronized with the tutor core PR here.
@@ -0,0 +1,3 @@ | |||
|
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.
nit: empty line at the start.
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.
missed it! removed.
[tool.hatch.build.targets.sdist] | ||
# Disable strict naming, otherwise twine is not able to detect name/version | ||
strict-naming = false | ||
exclude = ["tests*"] |
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.
What's the difference in egg_file now that we are only excluding tests*? The MANIFEST.in included only certain files.
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.
I have now added include statement! may be we can restrict it to only templates and patches folder also!
- migrate from setup.py/setuptools to pyproject.toml/hatch. - This commit will keep the tutor-discovery in sync with the tutor core. For more details view this PR in tutor: overhangio/tutor#1163.
527251d
to
5143b96
Compare
- name: Install dependencies | ||
run: | | ||
run: pip install pylint black | |
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.
Previously, we had a dev environment, which installed tutor[dev] (and that, handled these dependencies). Why we're not including that in our pyproject.toml?
test job logs specifically says that
WARNING: tutor-discovery 19.0.0 does not provide the extra 'dev'