Code Monkey home page Code Monkey logo

Comments (6)

baldurmen avatar baldurmen commented on May 22, 2024 1

Hi,

I guess this issue could be closed, yes. I would prefer if it wasn't though, as I don't think the current fix is what I intended :)

@SnoopJ is right in correcting me by saying setup.py isn't deprecated itself (only running it as CLI argument to build is). They're also right when they say you can now build this project using python3.11 -m build (I've just tested this while updating the Debian package to 0.8.0).

Most of the logic stays in the setup.py file though, and is in-house code. I think the best practice would be to migrate most (if not all) of that logic in the pyproject.toml file :)

I had a look and it doesn't seem like it would be a lot of work?

from clevercsv.

SnoopJ avatar SnoopJ commented on May 22, 2024

Point of clarification: setup.py is not itself deprecated (unless I am misinformed, in which case I would appreciate a pointer to the deprecation notice), but running setup.py directly is deprecated. I'm not familiar enough with this project to know if the executable portions of setup.py could be subsumed into an entirely-declarative way (setup.cfg or pyproject.toml) but it would be a good improvement to remove the direct execution of the file from the build tooling. I was able to successfully build this project with build as well as pip wheel, so it is probably compatible with any PEP 517 build front-end.

from clevercsv.

sanmai-NL avatar sanmai-NL commented on May 22, 2024

@baldurmen It seems to have been fixed. Can this be closed?

from clevercsv.

sanmai-NL avatar sanmai-NL commented on May 22, 2024

Yes you're right, the pyproject.toml is there but the setup.py lingers.

from clevercsv.

GjjvdBurg avatar GjjvdBurg commented on May 22, 2024

Thanks both for the discussion! I looked into this a bit but haven't fully completed the transition. I believe from what I've seen so far that the setup.py file is still needed for some build functionality (such as the C extensions), so my thinking is that in order to resolve this ticket it would be best to have that be the only things that are defined in the setup.py file. Until then I'll leave this ticket open.

from clevercsv.

sanmai-NL avatar sanmai-NL commented on May 22, 2024

You can use PDM: https://pdm-backend.fming.dev/build_config/#run-setuptools

from clevercsv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.