Commit 3f55c18
Migrate from Poetry to setuptools build backend (#124)
## Changes
This PR migrates the project from Poetry to setuptools as the build
backend, using the modern PEP 621 standard format for project metadata.
### Modified Files
**pyproject.toml**
- Changed build backend from `poetry-core` to `setuptools>=61.0`
- Converted `[tool.poetry]` configuration to standard `[project]`
section
- Converted Poetry dependency specifications to PEP 621 format:
- `[tool.poetry.dependencies]` → `[project] dependencies`
- `[tool.poetry.group.dev.dependencies]` →
`[project.optional-dependencies] dev`
- `[tool.poetry.scripts]` → `[project.scripts]`
- Preserved all existing metadata (version, description, classifiers,
keywords)
- Maintained Python 3.7+ compatibility
**.github/workflows/ci.yml**
- Removed Poetry installation and configuration steps
- Simplified dependency installation to use standard pip commands:
- `pip install .` for main dependencies
- `pip install .[dev]` for development dependencies
- Updated build step to use `python -m build` instead of `poetry build`
### Benefits
- **Standards Compliance**: Uses PEP 621 standard format, improving
interoperability with Python packaging tools
- **Simplified Toolchain**: Reduces external dependencies by using
setuptools (already widely available)
- **Faster CI**: Eliminates Poetry installation overhead in CI/CD
workflows
- **Better Compatibility**: Works seamlessly with pip, build, and other
standard Python packaging tools
### Testing
- ✅ Package builds successfully (wheel and source distribution)
- ✅ All 8 tests pass
- ✅ CLI entry point works correctly (`lintrunner_adapters` command)
- ✅ No security issues detected by CodeQL
### Migration Notes
This is a minimal, surgical change that only modifies the build
configuration. All package functionality, dependencies, and API remain
unchanged. Users installing the package will see no difference in
behavior.
Fixes #<issue_number>
<!-- START COPILOT CODING AGENT SUFFIX -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>Use setuptools instead of poetry</issue_title>
> <issue_description>Update build tool to use
setuptools.</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> </comments>
>
</details>
Fixes #123
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: justinchuby <11205048+justinchuby@users.noreply.github.com>
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com>1 parent e76d83e commit 3f55c18
2 files changed
+39
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
87 | | - | |
| 86 | + | |
88 | 87 | | |
89 | | - | |
90 | | - | |
91 | 88 | | |
92 | 89 | | |
93 | 90 | | |
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
97 | | - | |
| 94 | + | |
98 | 95 | | |
99 | | - | |
| 96 | + | |
| 97 | + | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
4 | 34 | | |
5 | 35 | | |
6 | 36 | | |
| |||
15 | 45 | | |
16 | 46 | | |
17 | 47 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | | - | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
0 commit comments