Skip to content

Commit 6a5ba32

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, description, 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 6a5ba32

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

setup.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#
22
# Metadata for setup.py
33
#
4-
# See https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
4+
# See https://setuptools.rtfd.io/en/latest/userguide/declarative_config.html
55

66
[metadata]
77
name = semver
88
version = attr: semver.__about__.__version__
9-
description = attr: semver.__about__.__description__
9+
description = Python helper for Semantic Versioning (http://semver.org)
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)