-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore: migrate from setup.py to pyproject.toml #144
base: main
Are you sure you want to change the base?
Conversation
6ca69d4
to
79715a7
Compare
@@ -27,9 +27,7 @@ jobs: | |||
if: ${{ steps.release.outputs.release_created }} | |||
- name: Install dependencies | |||
if: ${{ steps.release.outputs.release_created }} | |||
run: | | |||
python -m pip install --upgrade pip |
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.
doesn't seem necessary to try to upgrade pip just to install build
python setup.py pytest | ||
``` | ||
|
||
### Publish the package |
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.
people outside the org can't publish anyways, so removing this block
] | ||
description = "Passkey Complete for Python - Integrate into your Python API or service to enable a completely passwordless standalone auth solution with Passage by 1Password" | ||
readme = "README.md" | ||
classifiers = [ |
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.
these were pulled from https://pypi.org/classifiers/
"Bug Tracker" = "https://github.com/passageidentity/.github/blob/main/SUPPORT.md" | ||
|
||
[project.license] | ||
file = "LICENSE" |
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.
[project]
license-files = ["LICENSE"]
the above syntax is noted in the docs but hasn't been adopted by setuptools
yet, so we are using the legacy syntax for now
pyproject.toml
Outdated
[tool.setuptools.packages.find] | ||
where = ["passageidentity"] |
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.
this should take care of the packages
and package_dir
blocks from the old setup.py:
Lines 38 to 51 in f359061
packages=[ | |
"passageidentity", | |
"passageidentity.models", | |
"passageidentity.openapi_client", | |
"passageidentity.openapi_client.api", | |
"passageidentity.openapi_client.models", | |
], | |
package_dir={ | |
"passageidentity": "passageidentity", | |
"passageidentity.models": "passageidentity/models", | |
"passageidentity.openapi_client": "passageidentity/openapi_client", | |
"passageidentity.openapi_client.api": "passageidentity/openapi_client/api", | |
"passageidentity.openapi_client.models": "passageidentity/openapi_client/models", | |
}, |
a38885e
to
46a7024
Compare
46a7024
to
60c4cdb
Compare
|
packages=[ | ||
"passageidentity", | ||
"passageidentity.models", | ||
"passageidentity.openapi_client", | ||
"passageidentity.openapi_client.api", | ||
"passageidentity.openapi_client.models", | ||
], | ||
package_dir={ | ||
"passageidentity": "passageidentity", | ||
"passageidentity.models": "passageidentity/models", | ||
"passageidentity.openapi_client": "passageidentity/openapi_client", | ||
"passageidentity.openapi_client.api": "passageidentity/openapi_client/api", | ||
"passageidentity.openapi_client.models": "passageidentity/openapi_client/models", | ||
}, |
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.
manually specifying these is no longer necessary with automatic discovery
i inspected the build artifact and it included everything from the root passageidentity
folder and did not include the tests
folder
What's New?
used these refs when writing the toml:
Screenshots (if appropriate):
Type of change
Checklist:
Additional context