Skip to content

Commit

Permalink
chore: use pathlib
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Jun 10, 2023
1 parent 4170dfd commit 419b730
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
from pathlib import Path
from setuptools import find_packages
from setuptools import setup

import os


def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()


version = "2.0.4.dev0"

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

setup(
name="plone.supermodel",
version=version,
description="Serialize Zope schema definitions to and from XML",
long_description=long_description,
long_description_content_type="text/x-rst",
# Get more strings from
# https://pypi.org/classifiers/
classifiers=[
Expand Down

0 comments on commit 419b730

Please sign in to comment.