Pebaz / nimporter

Compile Nim Extensions for Python On Import!
MIT License
824 stars 33 forks source link

setup.cfg instead of setup.py #26

Closed juancarlospaco closed 4 years ago

juancarlospaco commented 4 years ago

Use setup.cfg instead of setup.py on the documentation and the setup.py generator.

.cfg can be easy to generate/parse from Nim using parsecfg module, builtin on Python. :slightly_smiling_face:

Pebaz commented 4 years ago

Hello @juancarlospaco !

Can you explain a bit more about the advantages to this approach?

I'd be willing to consider switching to the setup.cfg if I knew more about how it could benefit the project.

juancarlospaco commented 4 years ago

It suppose to be the best practice for Python. It is a format common to both languages. It is a config format instead of code.

Pebaz commented 4 years ago

I have taken the time to look into this and although I (personally) will begin to use setup.cfg in future projects, I wish to leave setup.py as it is for now.

Thanks for introducing setup.cfg to me though I have not used it until today! 🙂