Skip to content

Commit

Permalink
Fix files included in build distributions - close #843
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Jul 10, 2023
1 parent d184acf commit fd5b2a0
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 55 deletions.
18 changes: 7 additions & 11 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
include PyPIReadme.rst
include CHANGELOG.md
include CONTRIBUTING.md
include CONTRIBUTORS.md
include LICENSE
exclude MANIFEST.in
include README.md

recursive-include fpdf *
recursive-exclude fpdf *.pyc
recursive-exclude scripts *
recursive-exclude test *
recursive-exclude tutorial *

# added by check_manifest.py
exclude *.md
exclude *.yml
include LICENSE
exclude tox.ini

include README.md
49 changes: 47 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,52 @@
[metadata]
description-file = README.md
name = fpdf2
url = https://pyfpdf.github.io/fpdf2/
description = Simple & fast PDF generation for Python
long_description = file: README.md
long_description_content_type = text/markdown
author = Olivier PLATHEY ported by Max
maintainer = Lucas Cimon
license = LGPLv3+
project_urls =
Documentation = https://pyfpdf.github.io/fpdf2/
Code = https://github.com/PyFPDF/fpdf2
Issue tracker = https://github.com/PyFPDF/fpdf2/issues
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Programming Language :: Python
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Operating System :: OS Independent
Topic :: Printing
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Text Processing :: Markup
Topic :: Multimedia :: Graphics
Topic :: Multimedia :: Graphics :: Presentation
keywords =
pdf
unicode
png
jpg
ttf
barcode

[wheel]
[options]
packages =
fpdf
install_requires =
defusedxml
Pillow>=6.2.2,!=9.2.* # minimum version tested there: https://github.com/PyFPDF/fpdf2/actions/runs/2295868575
# Version 9.2.0 is excluded due to DoS vulnerability with TIFF images: https://github.com/PyFPDF/fpdf2/issues/628
# Version exclusion explained here: https://devpress.csdn.net/python/630462c0c67703293080c302.html
fonttools>=4.34.0
python_requires = >=3.7

[bdist_wheel]
universal = 1

[flake8]
Expand Down
43 changes: 1 addition & 42 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re
from pathlib import Path

from setuptools import find_packages, setup
from setuptools import setup


if __name__ == "__main__":
Expand All @@ -10,47 +10,6 @@
Path("fpdf/fpdf.py").read_text(encoding="utf-8"),
)[0]
setup(
name="fpdf2",
version=version,
description="Simple & fast PDF generation for Python",
long_description=Path("README.md").read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
author="Olivier PLATHEY ported by Max",
maintainer="Lucas Cimon",
url="https://pyfpdf.github.io/fpdf2/",
download_url=f"https://github.com/PyFPDF/fpdf2/tarball/{version}",
project_urls={
"Documentation": "https://pyfpdf.github.io/fpdf2/",
"Code": "https://github.com/PyFPDF/fpdf2",
"Issue tracker": "https://github.com/PyFPDF/fpdf2/issues",
},
license="LGPLv3+",
packages=find_packages(),
package_dir={"fpdf": "fpdf"},
install_requires=[
"defusedxml",
"Pillow>=6.2.2,!=9.2.*", # minimum version tested there: https://github.com/PyFPDF/fpdf2/actions/runs/2295868575
# Version 9.2.0 is excluded due to DoS vulnerability with TIFF images: https://github.com/PyFPDF/fpdf2/issues/628
# Version exclusion explained here: https://devpress.csdn.net/python/630462c0c67703293080c302.html
"fonttools>=4.34.0",
],
python_requires=">=3.7",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Topic :: Printing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia :: Graphics :: Presentation",
],
keywords=["pdf", "unicode", "png", "jpg", "ttf", "barcode"],
)

0 comments on commit fd5b2a0

Please sign in to comment.