python-project-template icon indicating copy to clipboard operation
python-project-template copied to clipboard

Moving to pyproject.toml using uv #issue 27

Open vmagueta opened this issue 1 year ago • 5 comments

Summary :memo:

This pull request integrates the project from using setup.py and requirements.txt to pyproject.toml setup. It streamlines dependency management and adheres to contemporary Python packaging practices.

Details

Describe more what you did on changes.

  1. Migrated from setup.py to pyproject.toml, including metadata and dependencies;
  2. Removed the setup.py file;
  3. Integrated dependencies from requirements.txt and requirements-test.txt into the pyprojects.toml file;
  4. Also removed the requirements.txt and requirements-test.txt files;

Checks

  • [ ] Closed #27

vmagueta avatar Oct 21 '24 19:10 vmagueta

       ValueError: invalid pyproject.toml config: `project`.
      configuration error: `project` must not contain {'homepage'} properties
      [end of output]

rochacbruno avatar Oct 22 '24 13:10 rochacbruno

The homepage key is now invalid, it must be project.urls

I think it will be good to move to the UV compatible pyproject.

an example here https://github.com/rochacbruno/dundie-rewards/pull/43

rochacbruno avatar Oct 27 '24 09:10 rochacbruno

Bruno, I’m not sure if I did it correctly. If not, I'll ask you sometime to show me what’s wrong. Maybe we could review it in a call or when you’re here, if you have the time, of course. Unfortunately, I missed the last class, so I'm little bit lost in uv.

vmagueta avatar Oct 30 '24 02:10 vmagueta

anything new here? Can I help with something?

jkobject avatar Jan 28 '25 13:01 jkobject

Hello! I’m not sure whether this pull request will be merged, but if it is, you might want to update the Containerfile to adhere to UV’s recommended usage: https://docs.astral.sh/uv/guides/integration/docker/

thiag0bezerra avatar May 08 '25 21:05 thiag0bezerra