Skip to content

Commit 8685158

Browse files
committed
Use literal strings in setup.cfg
Due to https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html#metadata we cannot use the "attr:" type in the keywords author, author_email, maintainer, and maintainer_email. If we do not change it to literal strings, twine (or PyPI) complains about the metadata with the following error: HTTPError: 400 Client Error: 'attr: semver.__about__.__author_email__' is an invalid value for Author-email.
1 parent 5d192da commit 8685158

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ version = attr: semver.__about__.__version__
99
description = attr: semver.__about__.__description__
1010
long_description = file: README.rst
1111
long_description_content_type = text/x-rst
12-
author = attr: semver.__about__.__author__
13-
author_email = attr: semver.__about__.__author_email__
14-
maintainer = attr: semver.__about__.__maintainer__
15-
maintainer_email = attr: semver.__about__.__maintainer_email__
12+
author = Kostiantyn Rybnikov
13+
author_email = k-bx@k-bx.com
14+
maintainer = Sebastien Celles, Tom Schraitle
15+
maintainer_email = s.celles@gmail.com
1616
url = https://github.com/python-semver/python-semver
1717
download_url = https://github.com/python-semver/python-semver/downloads
1818
project_urls =

0 commit comments

Comments
 (0)