PyCQA / flake8-import-order

Flake8 plugin that checks import order against various Python Style Guides
GNU Lesser General Public License v3.0
278 stars 72 forks source link

Migrate metadata from setup.py to setup.cfg #186

Closed cclauss closed 1 year ago

cclauss commented 2 years ago

Created using https://pypi.org/project/setuptools-py2cfg plus manual modifications.

https://setuptools.pypa.io/en/latest/userguide/quickstart.html#basic-use

We recommend users expose as much as possible configuration in a more declarative way via the pyproject.toml or setup.cfg, and keep the setup.py minimal with only the dynamic parts (or even omit it completely if applicable).

https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html https://thehackernews.com/2022/09/warning-pypi-feature-executes-code.html

sigmavirus24 commented 1 year ago

@cclauss would you be willing to resolve the conflicts here?

cclauss commented 1 year ago

Should flake8_import_order/__about__.py be removed?

sigmavirus24 commented 1 year ago

Could we not use attr: flake8_import_order.__about__.__version__ in setup.cfg to avoid the version being hard-coded in setup.cfg? Also the version in there now is wrong.