Skip to content

Commit

Permalink
Add pyproject.toml and bump minimal cffi deps
Browse files Browse the repository at this point in the history
I *think* this is the modern way to specify setup_requires...  Hopefully
this fixed Issue jbaiter#27.

The `cffi` parts of the toml file come from [1].

[1] pyca/cryptography#3548
  • Loading branch information
cbm755 committed Aug 23, 2020
1 parent b3ab1c5 commit e9cb057
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools",
"wheel",
"cffi>=1.4.1; platform_python_implementation != 'PyPy'",
]
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
python_requires=">=3.5",
packages=['jpegtran'],
package_data={'jpegtran': ['jpegtran.cdef']},
setup_requires=['cffi >= 1.0'],
install_requires=['cffi >= 1.0'],
install_requires=['cffi>=1.4.1'],
cffi_modules=["jpegtran/jpegtran_build.py:ffi"]
)

0 comments on commit e9cb057

Please sign in to comment.