Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precommit Issues #413

Closed
Samurai336 opened this issue Aug 11, 2023 · 5 comments
Closed

Precommit Issues #413

Samurai336 opened this issue Aug 11, 2023 · 5 comments

Comments

@Samurai336
Copy link
Contributor

Hello:

When I try to make a commit I get the following error from the precommit task

stderr:
      error: subprocess-exited-with-error
      
      × python setup.py egg_info did not run successfully.
      │ exit code: 1
      ╰─> [1 lines of output]
          error in pylint setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.5.*'
          [end of output]
      
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed

setup.py file has not been touched.

@Samurai336
Copy link
Contributor Author

Samurai336 commented Aug 11, 2023

yes, I went looking at setup.py in gramps_webapi and had a feeling that was not the issue.

Currently running pylint Version: 2.17.5 and still getting the issue, I'm not entirely sure how to tell which pre-commit step this is choking on.

@Samurai336
Copy link
Contributor Author

Samurai336 commented Aug 11, 2023

found this in my cached pre-commit folders setup.py

return setup(
        name="pylint",
        version=__pkginfo__["version"],
        license=__pkginfo__["license"],
        description=__pkginfo__["description"],
        long_description=long_description,
        author=__pkginfo__["author"],
        author_email=__pkginfo__["author_email"],
        url=__pkginfo__["web"],
        scripts=ensure_scripts(scripts),
        classifiers=__pkginfo__["classifiers"],
        data_files=data_files,
        ext_modules=ext_modules,
        cmdclass=cmdclass,
        extras_require=extras_require,
        test_suite="test",
        python_requires=">=3.5.*",  
        setup_requires=pytest_runner,
        tests_require=["pytest"],
        **kwargs
    )

So something is generating it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Samurai336 and others