Skip to content

python setup.py install alias plip='python plip/plip/plipcmd.py' #199

Description

@Chengbo123

~/CBGBench/tools/plip$ python setup.py install
alias plip='python plip/plip/plipcmd.py'
/home/leviathan/.conda/envs/cbgbench/lib/python3.11/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

    ********************************************************************************
    Usage of dash-separated 'description-file' will not be supported in future
    versions. Please use the underscore name 'description_file' instead.

    This deprecation is overdue, please update your project and remove deprecated
    calls to avoid build errors in the future.

    See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
    ********************************************************************************

!!
opt = self.warn_dash_deprecation(opt, section)
/home/leviathan/.conda/envs/cbgbench/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py:66: _BetaConfiguration: Support for [tool.setuptools] in pyproject.toml is still beta.
config = read_configuration(filepath, True, ignore_option_errors, dist)
configuration error: project.license must be valid exactly by one definition (2 matches found):

- keys:
    'file': {type: string}
  required: ['file']
- keys:
    'text': {type: string}
  required: ['text']

DESCRIPTION:
Project license <https://peps.python.org/pep-0621/#license>_.

GIVEN VALUE:
"GPL-2.0-only"

OFFENDING RULE: 'oneOf'

DEFINITION:
{
"oneOf": [
{
"properties": {
"file": {
"type": "string",
"$$description": [
"Relative path to the file (UTF-8) which contains the license for the",
"project."
]
}
},
"required": [
"file"
]
},
{
"properties": {
"text": {
"type": "string",
"$$description": [
"The license of the project whose meaning is that of the",
"License field from the core metadata", "<https://packaging.python.org/specifications/core-metadata/#license>_."
]
}
},
"required": [
"text"
]
}
]
}
Traceback (most recent call last):
File "/home/leviathan/CBGBench/tools/plip/setup.py", line 74, in
setup(name='plip',
File "/home/leviathan/.conda/envs/cbgbench/lib/python3.11/site-packages/setuptools/init.py", line 107, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/leviathan/.conda/envs/cbgbench/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 159, in setup
dist.parse_config_files()
File "/home/leviathan/.conda/envs/cbgbench/lib/python3.11/site-packages/setuptools/dist.py", line 898, in parse_config_files
pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
File "/home/leviathan/.conda/envs/cbgbench/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 66, in apply_configuration
config = read_configuration(filepath, True, ignore_option_errors, dist)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/leviathan/.conda/envs/cbgbench/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 128, in read_configuration
validate(subset, filepath)
File "/home/leviathan/.conda/envs/cbgbench/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 55, in validate
raise ValueError(f"{error}\n{summary}") from None
ValueError: invalid pyproject.toml config: project.license.
configuration error: project.license must be valid exactly by one definition (2 matches found):

- keys:
    'file': {type: string}
  required: ['file']
- keys:
    'text': {type: string}
  required: ['text']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions