Conversation
* Build changelog from news files
|
Looks like it is using an old version of setuptools. I think I saw version |
|
Nope. I checked that already and added a little change in diff --git i/tox.ini w/tox.ini
index 73fbfc5..d6c17df 100644
--- i/tox.ini
+++ w/tox.ini
@@ -95,7 +95,9 @@ basepython = python3
deps =
wheel
twine
+ setuptools >= 43
commands =
+ # just to make sure we see what's installed:
+ pip list
python3 setup.py sdist bdist_wheel
twine check dist/*when I run it As you can see, I have even setuptools version >50. When I extract the Either this is a bug in setuptools or we did something wrong. 😄 Maybe we need to overwrite the build_wheel command and replace the parts. I think the new |
|
Interesting... after a closer look, the |
|
I think I've found the culprit. According to the table in Metadata section of the setuptools documentation:
That means, the Seems I need to replace them with the real values. |
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.
8685158 to
6a5ba32
Compare
|
Success! 🎉 After I've updated the fields above, I could upload the files to TestPyPI: https://test.pypi.org/project/semver/3.0.0.dev2/ |
|
Oh no, such a specific limitation. I wish we could use |
|
That would be great. 👍I think this is such a nice and elegant feature. |
This PR contains:
However, trying to upload it to TestPyPI gives me the following error:
I also tried it with latest twine (version 3.2.0) without success.
@tlaferriere Thomas, do you know how this can be solved? Seems twine or (Test)PyPI doesn't understand our new
setup.cfg. 😢 Seems this is not really supported... 🤔