1
0

Compare commits

..

No commits in common. "037662512863a97e61a9ef7602b4545d6a798667" and "b44cc3edbaf4f74a842d20253d0582517a467548" have entirely different histories.

4 changed files with 19 additions and 10 deletions

View File

@ -2,6 +2,6 @@
<!--- THIS IS AN AUTO-GENERATED FILE --->
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN --->
# Datagraph Library.
Datagraph Library.
Utility for working with scheme+ld and other data-graph and semantic web formats.

View File

@ -1,4 +1,4 @@
"""# Datagraph Library.
"""Datagraph Library.
Utility for working with scheme+ld and other data-graph and semantic web formats.
"""

View File

@ -1 +1 @@
__version__ = '0.1.15'
__version__ = '0.1.14'

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
#
# WARNING
#
# THIS IS AN AUTOGENERATED FILE.
@ -10,12 +12,9 @@ from setuptools import setup
PACKAGE_NAME = 'datagraph'
PACKAGE_DESCRIPTION = """
# Datagraph Library.
with open('README.md') as f:
readme = f.read()
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)
@ -38,6 +37,16 @@ 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
@ -53,8 +62,8 @@ requests_cache
setup(
name=PACKAGE_NAME,
version=version,
description=PACKAGE_DESCRIPTION_SHORT,
long_description=PACKAGE_DESCRIPTION,
description=determine_short_description(readme),
long_description=readme,
long_description_content_type='text/markdown',
author='Jmaa',
author_email='jonjmaa@gmail.com',