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

Requirement-detector doesn't detect requirements from setup.cfg #47

Open
eirnym opened this issue Dec 3, 2023 · 2 comments
Open

Requirement-detector doesn't detect requirements from setup.cfg #47

eirnym opened this issue Dec 3, 2023 · 2 comments

Comments

@eirnym
Copy link

eirnym commented Dec 3, 2023

Setup.cfg is a proper place to setup whole thing for setuptools

example (taken from setuptools page)

# setup.py

from setuptools import setup

setup()  # All details are in setup.cfg
#setup.cfg

[metadata]
name = my_package
version = attr: my_package.VERSION
author = Author Name
author_email =author.name@email.hosting
description = My package description
long_description = file: README.rst, CHANGELOG.rst, LICENSE.rst
keywords = one, two
license = BSD-3-Clause
classifiers =
    Framework :: Django
    Programming Language :: Python :: 3

[options]
zip_safe = False
include_package_data = True
packages = find:
python_requires = >=3.7
install_requires =
    requests
    importlib-metadata; python_version<"3.8"

[options.package_data]
* = *.txt, *.rst
hello = *.msg

[options.entry_points]
console_scripts =
    executable-name = my_package.module:function

[options.extras_require]
pdf = ReportLab>=1.2; RXP
rest = docutils>=0.3; pack ==1.1, ==1.3

[options.packages.find]
exclude =
    examples*
    tools*
    docs*
    my_package.tests*
@carlio
Copy link
Contributor

carlio commented Dec 3, 2023

Setup.cfg is a proper place to setup whole thing for setuptools

I had no idea!

Feel free to create a PR, I'll merge it. If not I'll try to get around to this but it'll take me a while, I have quite a backlog at the moment!

@eirnym
Copy link
Author

eirnym commented Jan 17, 2024

After a little bit of research, I found that this tool doesn't support most of setuptools at all including pyproject.toml file. The tool currently supports mostly poetry and some dependencies from setup.py.

Nevertheless, even I found a way to describe it in the most proper way, I'd like to discuss with you if possible to undersand what is the primary goal of this plugin as it will and will and won't work in some cases I've saw in the internet.

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