Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue generating spec when PyPI summary is empty #202

Closed
zachspar opened this issue Jul 28, 2024 · 0 comments · Fixed by #203
Closed

Issue generating spec when PyPI summary is empty #202

zachspar opened this issue Jul 28, 2024 · 0 comments · Fixed by #203

Comments

@zachspar
Copy link
Contributor

zachspar commented Jul 28, 2024

Problem:

When there is no description in pyproject.toml the script fails when trying to create summary_no_ending_dot.

data['summary_no_ending_dot'] = re.sub(r'(.*)\.', r'\g<1>', data.get('summary'))
...
    return _compile(pattern, flags).sub(repl, string, count)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'

Found when running py2pack generate parquet-py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant