jschema-to-python
jschema-to-python copied to clipboard
When installing using pyinstaller I get Exception: Versioning for this project requires either an sdist tarball, or
If the package is installed and frozen using pyinstaller I get the following error.
This can also be reproduced if you run:
pip install https://github.com/microsoft/jschema-to-python/archive/refs/heads/main.zip
File "/private/var/folders/gh/xb7d1gmd365bzd73jn3_jc080000gq/T/pip-build-env-jjvoj2_g/normal/lib/python3.10/site-packages/pbr/core.py", line 105, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "/private/var/folders/gh/xb7d1gmd365bzd73jn3_jc080000gq/T/pip-build-env-jjvoj2_g/normal/lib/python3.10/site-packages/pbr/util.py", line 272, in cfg_to_args
pbr.hooks.setup_hook(config)
File "/private/var/folders/gh/xb7d1gmd365bzd73jn3_jc080000gq/T/pip-build-env-jjvoj2_g/normal/lib/python3.10/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook
metadata_config.run()
File "/private/var/folders/gh/xb7d1gmd365bzd73jn3_jc080000gq/T/pip-build-env-jjvoj2_g/normal/lib/python3.10/site-packages/pbr/hooks/base.py", line 27, in run
self.hook()
File "/private/var/folders/gh/xb7d1gmd365bzd73jn3_jc080000gq/T/pip-build-env-jjvoj2_g/normal/lib/python3.10/site-packages/pbr/hooks/metadata.py", line 25, in hook
self.config['version'] = packaging.get_version(
File "/private/var/folders/gh/xb7d1gmd365bzd73jn3_jc080000gq/T/pip-build-env-jjvoj2_g/normal/lib/python3.10/site-packages/pbr/packaging.py", line 866, in get_version
raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name jschema_to_python was given, but was not able to be found.
error in setup command: Error parsing /private/var/folders/gh/xb7d1gmd365bzd73jn3_jc080000gq/T/pip-req-build-4urpsbho/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name jschema_to_python was given, but was not able to be found.
[end of output]