Problem with description-file insetup.cfg


Collecting upstox-python-sdk==2.9.0 (from -r requirements.txt (line 27))

[76](https://github.com/***/actions/runs/14038297183/job/39301771365#step:4:77) Downloading upstox_python_sdk-2.9.0.tar.gz (119 kB)

[77](https://github.com/*****/actions/runs/14038297183/job/39301771365#step:4:78) Installing build dependencies: started

[78](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:79) Installing build dependencies: finished with status 'done'

[79](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:80) Getting requirements to build wheel: started

[80](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:81) Getting requirements to build wheel: finished with status 'error'

[81](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:82) error: subprocess-exited-with-error

[82](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:83)

[83](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:84) × Getting requirements to build wheel did not run successfully.

[84](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:85) │ exit code: 1

[85](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:86) ╰─> [31 lines of output]

[86](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:87) Traceback (most recent call last):

[87](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:88) File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>

[88](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:89) main()

[89](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:90) File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main

[90](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:91) json_out["return_val"] = hook(**hook_input["kwargs"])

[91](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:92) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[92](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:93) File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel

[93](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:94) return hook(config_settings)

[94](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:95) ^^^^^^^^^^^^^^^^^^^^^

[95](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:96) File "/tmp/pip-build-env-m0ikyumy/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel

[96](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:97) return self._get_build_requires(config_settings, requirements=[])

[97](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:98) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[98](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:99) File "/tmp/pip-build-env-m0ikyumy/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires

[99](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:100) self.run_setup()

[100](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:101) File "/tmp/pip-build-env-m0ikyumy/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 522, in run_setup

[101](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:102) super().run_setup(setup_script=setup_script)

[102](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:103) File "/tmp/pip-build-env-m0ikyumy/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup

[103](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:104) exec(code, locals())

[104](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:105) File "<string>", line 32, in <module>

[105](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:106) File "/tmp/pip-build-env-m0ikyumy/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 116, in setup

[106](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:107) _install_setup_requires(attrs)

[107](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:108) File "/tmp/pip-build-env-m0ikyumy/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in _install_setup_requires

[108](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:109) dist.parse_config_files(ignore_option_errors=True)

[109](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:110) File "/tmp/pip-build-env-m0ikyumy/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 730, in parse_config_files

[110](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:111) self._parse_config_files(filenames=inifiles)

[111](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:112) File "/tmp/pip-build-env-m0ikyumy/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 599, in _parse_config_files

[112](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:113) opt = self._enforce_underscore(opt, section)

[113](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:114) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[114](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:115) File "/tmp/pip-build-env-m0ikyumy/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 629, in _enforce_underscore

[115](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:116) raise InvalidConfigError(

[116](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:117) setuptools.errors.InvalidConfigError: Invalid dash-separated key 'description-file' in 'metadata' (setup.cfg), please use the underscore name 'description_file' instead.

[117](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:118) [end of output]

[118](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:119)

[119](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:120) note: This error originates from a subprocess, and is likely not a problem with pip.

[120](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:121)error: subprocess-exited-with-error

[121](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:122)

[122](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:123)× Getting requirements to build wheel did not run successfully.

[123](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:124)│ exit code: 1

[124](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:125)╰─> See above for output.

[125](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:126)

[126](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:127)note: This error originates from a subprocess, and is likely not a problem with pip.

[127](https://github.com/********/actions/runs/14038297183/job/39301771365#step:4:128)Error: Process completed with exit code 1.

Run Test Suite

0s

Post Set Up Python

0s

Post Checkout Code

0s

Complete job

0s

ChatGpt is saying to fix the description-file in the metadata section of setup.cfg

Specifically, it's using a dash-separated key 'description-file' in the metadata 
section of setup.cfg, but it should be using an underscore ('description_file').

its the same issue even with upstox-python-sdk==2.14.0

Hi @Srinadha_Reddy
Are you trying to pull the SDK locally from GitHub or use it via Python pip packages?

Via pip and is happening in a github workflow