-
Notifications
You must be signed in to change notification settings - Fork 314
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
Nuisance warnings from tox #554
Labels
development
Internal issues that mostly affect maintainers vs. end users
Comments
Both of these are related to package building. The former is an
important one because we want to make sure we generate the
long-description before pushing a package to pypi.
On Mon, Aug 03, 2020 at 01:17:06PM -0700, Michael Hoffman wrote:
On my system (Ubuntu 20.04 on WSL2) I get two warnings when starting tox.
1. `Warning: No long description generated.`
This is because we build the long description from the README file using
pypandoc (iirc) when we release using an external module (pypandoc), see
setup.py. If you're just building the package for testing (like tox
does), no one really needs to read the long description. You might be
able to avoid the warning by putting pypandoc in the tox
requirements---but then you'll have a kind of unnecessary dependency for
simply running tests.
2. `UserWarning: Normalizing 'v4.3.0' to '4.3.0'`
Conventions differ across codebases and languages as to whether or not
semvers bear a preceding v. For Python, this is unusual, and so
setuptools are letting us know that. gcalcli was using the preceding
'v' on its version tags before I came to the project. It might be nice
to drop the preceding 'v' in setup.py. That would allow us to keep the
project tradition with respect to git-tags and to build Python packages
without complaints about the versions.
version = __version__[1:] if __version__.startswith('v') else __version__
…
```
$ tox
Warning: No long description generated.
/mnt/c/Users/mhoffman/src/collab/gcalcli/.tox/py35/lib/python3.5/site-packages/setuptools/dist.py:476: UserWarning: Normalizing 'v4.3.0' to '4.3.0'
normalized_version,
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#554
|
Thanks, making a Your solution to problem 2 looks good to me. |
I updated setup.py and files for metadata/packaging, suspect both of those issues are obsolete now. |
dbarnett
added
the
development
Internal issues that mostly affect maintainers vs. end users
label
Aug 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On my system (Ubuntu 20.04 on WSL2) I get two warnings when starting tox.
Warning: No long description generated.
UserWarning: Normalizing 'v4.3.0' to '4.3.0'
The text was updated successfully, but these errors were encountered: