Skip to content

Commit

Permalink
Move version to setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 22, 2023
1 parent adc6433 commit be07c46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ packages = ["PIL"]
include-package-data = true
package-dir = {"" = "src"}

[tool.setuptools.dynamic]
version = {attr = "PIL.__version__"}

[tool.isort]
profile = "black"

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,6 @@ def debug_build():

try:
setup(
version=PILLOW_VERSION,
cmdclass={"build_ext": pil_build_ext},
ext_modules=ext_modules,
zip_safe=not (debug_build() or PLATFORM_MINGW),
Expand Down

0 comments on commit be07c46

Please sign in to comment.