Created
April 8, 2020 18:57
-
-
Save abn/669c95565b957f6267cda71c2078278e to your computer and use it in GitHub Desktop.
python-poetry: bug in setup.py generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
poetry install | |
Installing dependencies from lock file | |
No dependencies to install or update | |
- Installing poetry-core (1.0.0a5) | |
EnvCommandError | |
Command ['/path/to/.venv/bin/pip', 'install', '-e', '/path/to/python-poetry/core'] errored with the following return code 1, and output: | |
Looking in indexes: https://pypi.org/simple, https://reader:****@nexus.eng.twyla.ai/repository/pypi-private/simple | |
Obtaining file:///path/to/python-poetry/core | |
ERROR: Command errored out with exit status 1: | |
command: /path/to/.venv/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/path/to/python-poetry/core/setup.py'"'"'; __file__='"'"'/path/to/python-poetry/core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info | |
cwd: /path/to/python-poetry/core/ | |
Complete output (11 lines): | |
running egg_info | |
writing poetry_core.egg-info/PKG-INFO | |
writing dependency_links to poetry_core.egg-info/dependency_links.txt | |
writing requirements to poetry_core.egg-info/requires.txt | |
writing top-level names to poetry_core.egg-info/top_level.txt | |
package init file 'tests/masonry/builders/fixtures/case_sensitive_exclusions/my_package/Foo/__init__.py' not found (or not a regular file) | |
package init file 'tests/masonry/builders/fixtures/case_sensitive_exclusions/my_package/FooBar/__init__.py' not found (or not a regular file) | |
package init file 'tests/masonry/builders/fixtures/case_sensitive_exclusions/my_package/bar/__init__.py' not found (or not a regular file) | |
package init file 'tests/masonry/builders/fixtures/complete/my_package/sub_pkg3/__init__.py' not found (or not a regular file) | |
package init file 'tests/masonry/builders/fixtures/extended/__init__.py' not found (or not a regular file) | |
error: package directory 'tests/masonry/builders/fixtures/extended/build/lib/linux-x86_64-2/7/extended' does not exist | |
---------------------------------------- | |
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. | |
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available. | |
You should consider upgrading via the 'pip install --upgrade pip' command. | |
at /path/to/poetry/poetry/utils/env.py:893 in _run | |
889| output = subprocess.check_output( | |
890| cmd, stderr=subprocess.STDOUT, **kwargs | |
891| ) | |
892| except CalledProcessError as e: | |
> 893| raise EnvCommandError(e, input=input_) | |
894| | |
895| return decode(output) | |
896| | |
897| def execute(self, bin, *args, **kwargs): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from setuptools import setup | |
packages = \ | |
['poetry', | |
'poetry.core', | |
'poetry.core._vendor', | |
'poetry.core._vendor.attr', | |
'poetry.core._vendor.backports', | |
'poetry.core._vendor.backports.configparser', | |
'poetry.core._vendor.enum', | |
'poetry.core._vendor.functools32', | |
'poetry.core._vendor.glob2', | |
'poetry.core._vendor.importlib_metadata', | |
'poetry.core._vendor.importlib_metadata.docs', | |
'poetry.core._vendor.importlib_metadata.tests', | |
'poetry.core._vendor.importlib_metadata.tests.data', | |
'poetry.core._vendor.jsonschema', | |
'poetry.core._vendor.jsonschema.benchmarks', | |
'poetry.core._vendor.packaging', | |
'poetry.core._vendor.pathlib2', | |
'poetry.core._vendor.pkginfo', | |
'poetry.core._vendor.pkginfo.tests', | |
'poetry.core._vendor.pyrsistent', | |
'poetry.core._vendor.tomlkit', | |
'poetry.core.json', | |
'poetry.core.masonry', | |
'poetry.core.masonry.builders', | |
'poetry.core.masonry.utils', | |
'poetry.core.packages', | |
'poetry.core.packages.constraints', | |
'poetry.core.packages.utils', | |
'poetry.core.semver', | |
'poetry.core.spdx', | |
'poetry.core.utils', | |
'poetry.core.vcs', | |
'poetry.core.version', | |
'tests', | |
'tests.fixtures.project_with_multi_constraints_dependency.project', | |
'tests.masonry', | |
'tests.masonry.builders', | |
'tests.masonry.builders.fixtures.case_sensitive_exclusions.my_package', | |
'tests.masonry.builders.fixtures.case_sensitive_exclusions.my_package.Foo', | |
'tests.masonry.builders.fixtures.case_sensitive_exclusions.my_package.FooBar', | |
'tests.masonry.builders.fixtures.case_sensitive_exclusions.my_package.bar', | |
'tests.masonry.builders.fixtures.complete.my_package', | |
'tests.masonry.builders.fixtures.complete.my_package.sub_pkg1', | |
'tests.masonry.builders.fixtures.complete.my_package.sub_pkg2', | |
'tests.masonry.builders.fixtures.complete.my_package.sub_pkg3', | |
'tests.masonry.builders.fixtures.default_with_excluded_data.my_package', | |
'tests.masonry.builders.fixtures.default_with_excluded_data_toml.my_package', | |
'tests.masonry.builders.fixtures.exclude_nested_data_toml.my_package', | |
'tests.masonry.builders.fixtures.extended', | |
'tests.masonry.builders.fixtures.extended.build.lib.linux-x86_64-2.7.extended', | |
'tests.masonry.builders.fixtures.extended.build.lib.linux-x86_64-3.5.extended', | |
'tests.masonry.builders.fixtures.extended.build.lib.linux-x86_64-3.6.extended', | |
'tests.masonry.builders.fixtures.extended.build.lib.linux-x86_64-3.7.extended', | |
'tests.masonry.builders.fixtures.extended.build.lib.linux-x86_64-3.8.extended', | |
'tests.masonry.builders.fixtures.extended.extended', | |
'tests.masonry.builders.fixtures.invalid_case_sensitive_exclusions.my_package', | |
'tests.masonry.builders.fixtures.invalid_case_sensitive_exclusions.my_package.Bar.foo.bar', | |
'tests.masonry.builders.fixtures.invalid_case_sensitive_exclusions.my_package.Foo', | |
'tests.masonry.builders.fixtures.invalid_case_sensitive_exclusions.my_package.FooBar', | |
'tests.masonry.builders.fixtures.localversionlabel', | |
'tests.masonry.builders.fixtures.module1', | |
'tests.masonry.builders.fixtures.prerelease', | |
'tests.masonry.builders.fixtures.simple_version', | |
'tests.masonry.builders.fixtures.single_python', | |
'tests.masonry.builders.fixtures.source_file.src', | |
'tests.masonry.builders.fixtures.source_package.src.package_src', | |
'tests.masonry.builders.fixtures.src_extended', | |
'tests.masonry.builders.fixtures.src_extended.src.extended', | |
'tests.masonry.builders.fixtures.with-include', | |
'tests.masonry.builders.fixtures.with-include.extra_dir', | |
'tests.masonry.builders.fixtures.with-include.extra_dir.sub_pkg', | |
'tests.masonry.builders.fixtures.with-include.for_wheel_only', | |
'tests.masonry.builders.fixtures.with-include.package_with_include', | |
'tests.masonry.builders.fixtures.with-include.src.src_package', | |
'tests.masonry.builders.fixtures.with-include.tests', | |
'tests.masonry.builders.fixtures.with_url_dependency.with_url_dependency', | |
'tests.masonry.builders.fixtures.with_vcs_dependency.with_vcs_dependency', | |
'tests.masonry.utils', | |
'tests.masonry.utils.fixtures.with_includes', | |
'tests.masonry.utils.fixtures.with_includes.bar', | |
'tests.masonry.utils.fixtures.with_includes.extra_package.some_dir', | |
'tests.packages', | |
'tests.packages.constraints', | |
'tests.packages.utils', | |
'tests.semver', | |
'tests.spdx', | |
'tests.vcs'] | |
package_data = \ | |
{'': ['*'], | |
'poetry.core._vendor.jsonschema': ['schemas/*'], | |
'poetry.core.json': ['schemas/*'], | |
'poetry.core.spdx': ['data/*'], | |
'tests': ['fixtures/project_with_multi_constraints_dependency/*'], | |
'tests.masonry.builders': ['fixtures/case_sensitive_exclusions/*', | |
'fixtures/complete/*', | |
'fixtures/default_with_excluded_data/*', | |
'fixtures/default_with_excluded_data_toml/*', | |
'fixtures/exclude_nested_data_toml/*', | |
'fixtures/invalid_case_sensitive_exclusions/*', | |
'fixtures/source_file/*', | |
'fixtures/source_package/*', | |
'fixtures/with_url_dependency/*', | |
'fixtures/with_vcs_dependency/*'], | |
'tests.masonry.builders.fixtures.complete.my_package': ['data1/*'], | |
'tests.masonry.builders.fixtures.complete.my_package.sub_pkg2': ['data2/*'], | |
'tests.masonry.builders.fixtures.default_with_excluded_data.my_package': ['data/*', | |
'data/sub_data/*'], | |
'tests.masonry.builders.fixtures.default_with_excluded_data_toml.my_package': ['data/*', | |
'data/sub_data/*'], | |
'tests.masonry.builders.fixtures.exclude_nested_data_toml.my_package': ['data/*', | |
'data/sub_data/*', | |
'puplic/*', | |
'puplic/item1/*', | |
'puplic/item1/subitem/*', | |
'puplic/item2/*'], | |
'tests.masonry.utils.fixtures.with_includes': ['not_a_python_pkg/*']} | |
extras_require = \ | |
{':python_version >= "2.7" and python_version < "2.8"': ['typing>=3.7.4.1,<4.0.0.0']} | |
setup_kwargs = { | |
'name': 'poetry-core', | |
'version': '1.0.0a5', | |
'description': 'Core utilities for Poetry', | |
'long_description': '', | |
'author': 'Sébastien Eustace', | |
'author_email': 'sebastien@eustace.io', | |
'maintainer': None, | |
'maintainer_email': None, | |
'url': 'https://github.com/python-poetry/core', | |
'packages': packages, | |
'package_data': package_data, | |
'extras_require': extras_require, | |
'python_requires': '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*', | |
} | |
setup(**setup_kwargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment