Skip to content

Commit

Permalink
chore: use pathlib.read_text
Browse files Browse the repository at this point in the history
This avoids having a resource warning when installing.
  • Loading branch information
gforcada committed Jun 4, 2023
1 parent f68a055 commit fad5098
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from setuptools import find_packages
from setuptools import setup

from pathlib import Path


version = "3.0.1.dev0"

Expand All @@ -9,11 +11,13 @@
"plone.testing",
]

long_description = f"{Path('README.rst').read_text()}\n{Path('CHANGES.rst').read_text()}"

setup(
name="plone.resource",
version=version,
description="Static files for Plone",
long_description=(open("README.rst").read() + "\n" + open("CHANGES.rst").read()),
long_description=long_description,
long_description_content_type="text/x-rst",
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit fad5098

Please sign in to comment.