{"id":20106159,"url":"https://github.com/himkt/python-packaging-experiment","last_synced_at":"2026-06-12T07:34:11.743Z","repository":{"id":248400293,"uuid":"828585621","full_name":"himkt/python-packaging-experiment","owner":"himkt","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-14T23:35:15.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T18:59:22.362Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/himkt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-14T15:36:19.000Z","updated_at":"2024-07-14T23:35:19.000Z","dependencies_parsed_at":"2025-06-28T12:31:39.621Z","dependency_job_id":null,"html_url":"https://github.com/himkt/python-packaging-experiment","commit_stats":null,"previous_names":["himkt/python-packaging-experiment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/himkt/python-packaging-experiment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fpython-packaging-experiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fpython-packaging-experiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fpython-packaging-experiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fpython-packaging-experiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/himkt","download_url":"https://codeload.github.com/himkt/python-packaging-experiment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fpython-packaging-experiment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34234557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:49:15.345Z","updated_at":"2026-06-12T07:34:11.727Z","avatar_url":"https://github.com/himkt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Q. pyproject.toml vs setup.py, which is prioritized?\n\nConsider the case where build backend is set to `setuptools.build_meta` in `pyproject.toml`.\nWhen `[project]` table in `pyproject.toml` and `setup.py` is prepared, what happens?\n\n### A. `pyproject.toml` won!\n\n\u003e pyproject.toml\n\n```toml\n[build-system]\nrequires = [\"setuptools\"]\nbuild-backend = \"setuptools.build_meta\"\n\n[project]\nname = \"test-prj\"\ndynamic = [\"version\"]\n```\n\n\u003e setup.py\n\n```python\nfrom setuptools import setup\n\nsetup(name=\"test_prj_setup_py\")\n```\n\n\u003e result\n\n```\n\u003e pip install .\nProcessing path/to/test-prj\n  Installing build dependencies ... done\n  Getting requirements to build wheel ... done\n  Preparing metadata (pyproject.toml) ... done\nBuilding wheels for collected packages: test-prj\n  Building wheel for test-prj (pyproject.toml) ... done\n  Created wheel for test-prj: filename=test_prj-0.0.0-py3-none-any.whl size=1126 sha256=14a6c639c9f9b75cae7ede2ba4f17278f9870e276b16468ffb3607f3d5572338\n  Stored in directory: /path/to/cache-dir/pip/wheels/path/to/cache\nSuccessfully built test-prj\nInstalling collected packages: test-prj\n  Attempting uninstall: test-prj\n    Found existing installation: test-prj 0.0.0\n    Uninstalling test-prj-0.0.0:\n      Successfully uninstalled test-prj-0.0.0\nSuccessfully installed test-prj-0.0.0\n```\n\n\u003e [!NOTE]\n\u003e If `[project]` section is removed, pip installed the package as `test_prj_setup_py` (i.e. `setup.py` is picked up).\n\n\u003e [!NOTE]\n\u003e If `[build-system]` is not defined in `pyproject.toml` and `setup.py` does not exist, `setuptools` is automatically used and read metadata in `[project]`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimkt%2Fpython-packaging-experiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimkt%2Fpython-packaging-experiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimkt%2Fpython-packaging-experiment/lists"}