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

chore: add pyproject.toml and specify build dependencies #221

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

aisk
Copy link
Member

@aisk aisk commented Aug 7, 2023

For latest setuptools, the build step has changed a lot. The main change is the build process is in an isolated environment without any pip packages.

thriftpy2's setup.py is using cython in its import stage, so the setuptools' change caused the CI failed (see: #220, except the python3.6, because it's using old version setuptools).

This commit adds the new style pyproject.toml and specified cython as the build dependency, so the CI can access cython in build process.

Please note that, when publish thriftpy2 to pypi server, we should using the new way described in https://setuptools.pypa.io/en/latest/userguide/quickstart.html, to build files which will be upload to pypi.

Roughly speaking, running pip install build; python -m build instead of python setup.py sdist bdist_wheel.

@ethe ethe force-pushed the build-dependencies branch from a7bfd48 to 1b80073 Compare August 7, 2023 10:47
@ethe ethe merged commit c8e5dd4 into Thriftpy:master Aug 7, 2023
@aisk aisk deleted the build-dependencies branch August 9, 2023 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants