From 55225748cfde5cf39bad155e9a6907dd482db208 Mon Sep 17 00:00:00 2001 From: takunomi-build-bot Date: Mon, 8 Jul 2024 20:22:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Repository=20layout=20updated=20?= =?UTF-8?q?to=20latest=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni --- README.md | 2 +- setup.py | 23 +++++++---------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 71bae51..4c1321b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,6 @@ -Datagraph Library. +# Datagraph Library. Utility for working with scheme+ld and other data-graph and semantic web formats. diff --git a/setup.py b/setup.py index 2a1f1a8..96c62a8 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python -# # WARNING # # THIS IS AN AUTOGENERATED FILE. @@ -12,9 +10,12 @@ from setuptools import setup PACKAGE_NAME = 'datagraph' -with open('README.md') as f: - readme = f.read() +PACKAGE_DESCRIPTION = """ +# Datagraph Library. +Utility for working with scheme+ld and other data-graph and semantic web formats.""" + +PACKAGE_DESCRIPTION_SHORT='Utility for working with scheme+ld and other data-graph and semantic web formats.' def parse_version_file(text: str) -> str: match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) @@ -37,16 +38,6 @@ def read_requirements(path: str) -> list[str]: return parse_requirements(f.read()) -def determine_short_description(readme: str) -> str: - readme = re.sub(r'#+[^\n]*\n+', '', readme) - m = re.search(r'^\s*(\w+[\w\s,`+-]+\.)', readme) - try: - return m.group(1) - except AttributeError as err: - msg = f'Could not determine short description: {readme}' - raise Exception(msg) from err - - REQUIREMENTS_MAIN = """ requests ratelimit @@ -62,8 +53,8 @@ requests_cache setup( name=PACKAGE_NAME, version=version, - description=determine_short_description(readme), - long_description=readme, + description=PACKAGE_DESCRIPTION_SHORT, + long_description=PACKAGE_DESCRIPTION, long_description_content_type='text/markdown', author='Jmaa', author_email='jonjmaa@gmail.com',