DiamondLightSource / dls-python3-skeleton

Archived in favour of https://github.com/DiamondLightSource/python-copier-template
Apache License 2.0
1 stars 0 forks source link

Revert "Enclose author & email in quotes" #28

Closed coretl closed 2 years ago

coretl commented 2 years ago

Reverts dls-controls/dls-python3-skeleton#23

Turns out:

So actually, the use of ' in package metadata is left undefined Similarly, .cfg parsers may optionally support escaping of ' with \', but this is not mandated

configparser.ConfigParser doesn't support escaping or quoting, so the workaround is:

author = First O'Last
author_email = first.o'last@example.com
license = Apache License 2.0

This breaks syntax highlighters (as you can see above), but works on pypi.org which is the only consumer of this