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

Build with PEP 517, move project metadata to setup.cfg #85

Merged
merged 1 commit into from
May 23, 2023

Conversation

EpicWink
Copy link
Contributor

@EpicWink EpicWink commented Aug 5, 2022

This differs from #84 by not specifying project configuration in pyproject.toml. This means older Python version support is not dropped.

  • Specify build backend in pyproject.toml (PEP 518)
  • Remove unused 'ctypes' dependency
  • Remove empty accelerate requirements file
  • Remove '..' from accelerate build include-dirs
  • Install package with pip in AppVeyor
  • Build package with PyPA's Build in AppVeyor
  • Skip explicit build dependency install in AppVeyor
  • Upgrade pip if found in AppVeyor

* Specify build backend in pyproject.toml (PEP 518)
* Remove unused 'ctypes' dependency
* Remove empty accelerate requirements file
* Remove '..' from accelerate build include-dirs
* Install package with pip in AppVeyor
* Build package with PyPA's Build in AppVeyor
* Skip explicit build dependency install in AppVeyor
* Upgrade pip if found in AppVeyor
@ChrisBarker-NOAA
Copy link

I think this is a better option than #84.Not because of old Python versions, but because I think setuptools is the the way to go for C extensions -- pyopengl-accelarate may require that.

Have you tested with accelerate as well?

If we're going to do wheels, it would be very nice to have that.

@EpicWink
Copy link
Contributor Author

I think setuptools is the the way to go for C extensions

Both #84 and this PR haven't changed the build-backend from setuptools. They just use different (static) files to declare project metadata (and use PEP 517 to declare setuptools as the backend, instead of legacy implicit).

Have you tested with accelerate as well?

As you can see in this PR's (and #84's) checks, AppVeyor has successfully built the wheels for both projects (including accelerate), just like in the main branch

@ChrisBarker-NOAA
Copy link

Wonderful -- then I personally vote for #84 -- no need to support Python versions that far back.

Thanks for putting this together.

@EpicWink EpicWink changed the title Build with PEP 517, move metadata to setup.cfg Build with PEP 517, move project metadata to setup.cfg Sep 26, 2022
@mcfletch mcfletch merged commit 426f52a into mcfletch:master May 23, 2023
@EpicWink EpicWink deleted the pep517 branch May 23, 2023 03:55
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.

None yet

3 participants