Skip to content

Commit

Permalink
Add long_description_content_type in setup.py
Browse files Browse the repository at this point in the history
When running twine check:

```
2020-10-21T15:07:30.1070752Z Checking wheelhouse/wbia_lightnet-3.0.1.dev1-py3-none-any.whl: FAILED
2020-10-21T15:07:30.1071735Z   `long_description` has syntax errors in markup and would not be rendered on PyPI.
2020-10-21T15:07:30.1072681Z     line 17: Warning: Inline literal start-string without end-string.
2020-10-21T15:07:30.1073551Z   warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
2020-10-21T15:07:30.1449807Z ##[error]Process completed with exit code 1.
```

The long description is from `README.md` so the `long_description_content_type`
should be `text/markdown`.
  • Loading branch information
karenc authored and bluemellophone committed Oct 21, 2020
1 parent 87060dd commit b910aaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def get_dist(pkgname):
author_email='[email protected]',
description='Building blocks for recreating darknet networks in pytorch',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
# The following settings retreive the version from git.
# See https://github.com/pypa/setuptools_scm/ for more information
setup_requires=['setuptools_scm'],
Expand Down

0 comments on commit b910aaa

Please sign in to comment.