Closed littlewhitecloud closed 1 year ago
The badest way to solve the problem: rename our project in setup.py
Yeah, thats a slight issue. tkterminal
is also taken so maybe tktermwidget
? Its an ugly name for sure but there are not many options.
I just change it name to tktermwidget and I test it locally. It shows me that:
C:\Program Files\Python39\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type'
And when I upload:
WARNING Error during upload. Retry with the --verbose option for more details.
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
The description failed to render in the default format of reStructuredText. See
https://pypi.org/help/#description-content-type for more information.
Almost drives me mad.
Still failed upload now... pypi github action (v0.0.2 upload)
The readme option is having an issue, I'll look into it tomorrow.
So, what's wrong with the readme option...?
I'm not sure to be honest.
IDK why it will say:
UserWarning: Unknown distribution option: 'long_description_content_type'
found it:
PS C:\Users\Administrator\Downloads\TkTerminal-main\TkTerminal-main> python setup.py sdist
C:\Program Files\Python39\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
running sdist
running check
warning: check: missing meta-data: if 'author' supplied, 'author_email' should be supplied too
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)
warning: sdist: standard file not found: should have one of README, README.txt, README.rst
writing manifest file 'MANIFEST'
creating tktermwidget-0.0.2
creating tktermwidget-0.0.2\tktermwidget
making hard links in tktermwidget-0.0.2...
hard linking setup.py -> tktermwidget-0.0.2
hard linking tktermwidget\__init__.py -> tktermwidget-0.0.2\tktermwidget
hard linking tktermwidget\tkterm.py -> tktermwidget-0.0.2\tktermwidget
Creating tar archive
removing 'tktermwidget-0.0.2' (and everything under it)
PS C:\Users\Administrator\Downloads\TkTerminal-main\TkTerminal-main>
What is sdist?
IDK why when I use bdist_wheel command to setup, it say there is no command named bdist_wheel, so I have to use this.
successed now, never mind about it.
Failed to upload. Maybe our project has the same name.