🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
This commit is contained in:
parent
4c77f20134
commit
82a6597bb7
25
setup.py
25
setup.py
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python
|
||||
#
|
||||
# WARNING
|
||||
#
|
||||
# THIS IS AN AUTOGENERATED FILE.
|
||||
|
@ -12,9 +10,14 @@ from setuptools import setup
|
|||
|
||||
PACKAGE_NAME = 'socials_util'
|
||||
|
||||
with open('README.md') as f:
|
||||
readme = f.read()
|
||||
PACKAGE_DESCRIPTION = """
|
||||
# Socials-util.
|
||||
|
||||
Python library for parsing and processing URLs of Social Media Sites.
|
||||
|
||||
Used by one-page-internet."""
|
||||
|
||||
PACKAGE_DESCRIPTION_SHORT='Python library for parsing and processing URLs of Social Media Sites.'
|
||||
|
||||
def parse_version_file(text: str) -> str:
|
||||
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
||||
|
@ -37,16 +40,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 = """
|
||||
enforce-typing
|
||||
aenum
|
||||
|
@ -60,8 +53,8 @@ pytest
|
|||
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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user