Well I edited my setup.py to include scripts = ['trespass/trespass'], it upload and when I installed it did copy to /usr/bin, however when I edited to make one more change the upload fails "AssertionError: unsupported schema" and I've no idea why as nothing else changed.
I download the setup.py from the successful upload from https://pypi.python.org/pypi/trespass/0.6.5.3 and just bumped up the version and I still get "AssertionError: unsupported schema". I'm very confused.
I tried again with no changes on my side and I can upload again.
I download the setup.py from the successful upload from https://pypi.python.org/pypi/trespass/0.6.5.3 and just bumped up the version and I still get "AssertionError: unsupported schema". I'm very confused.
Quote:sudo python setup.py sdist upload -r pypi
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)
package init file 'trespass/__init__.py' not found (or not a regular file)
writing manifest file 'MANIFEST'
creating trespass-0.6.5.4
creating trespass-0.6.5.4/trespass
making hard links in trespass-0.6.5.4...
hard linking README.txt -> trespass-0.6.5.4
hard linking setup.cfg -> trespass-0.6.5.4
hard linking setup.py -> trespass-0.6.5.4
hard linking trespass/trespass -> trespass-0.6.5.4/trespass
hard linking trespass/trespass.py -> trespass-0.6.5.4/trespass
Creating tar archive
removing 'trespass-0.6.5.4' (and everything under it)
running upload
Traceback (most recent call last):
File "setup.py", line 20, in <module>
classifiers = [],
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.6/distutils/command/upload.py", line 63, in run
self.upload_file(command, pyversion, filename)
File "/usr/lib/python3.6/distutils/command/upload.py", line 73, in upload_file
raise AssertionError("unsupported schema " + schema)
AssertionError: unsupported schema
I tried again with no changes on my side and I can upload again.