Repository: ray-project/rayfed (language: python)

Issue:
Failed to execute `pip install -e .`
The error message of executing `pip install -e . -v`:
```bash
-> % pip install -e . -v
Using pip 22.2.2 from /Users/qingwang/anaconda3/lib/python3.9/site-packages/pip (python 3.9)
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Obtaining file:///Users/qingwang/workspace/opensource/RayFed
  Running command pip subprocess to install build dependencies
  Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
  Collecting flit_core<4,>=3.2
    Downloading https://mirrors.aliyun.com/pypi/packages/04/ac/f91a0219e0d4162762f218e4876bf328f16e4d283e691cd7f42a02b22634/flit_core-3.8.0-py3-none-any.whl (62 kB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 272.8 kB/s eta 0:00:00
  Installing collected packages: flit_core
  Successfully installed flit_core-3.8.0
  Installing build dependencies ... done
  Running command Checking if build backend supports build_editable
  Checking if build backend supports build_editable ... done
  Running command Getting requirements to build editable
  Traceback (most recent call last):
    File "/Users/qingwang/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/Users/qingwang/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/Users/qingwang/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 144, in get_requires_for_build_editable
      return hook(config_settings)
    File "/private/var/folders/q4/6c8j2fsx34v45njdq0vdkhlm0000gp/T/pip-build-env-svvukwe7/overlay/lib/python3.9/site-packages/flit_core/buildapi.py", line 31, in get_requires_for_build_wheel
      module = Module(info.module, Path.cwd())
    File "/private/var/folders/q4/6c8j2fsx34v45njdq0vdkhlm0000gp/T/pip-build-env-svvukwe7/overlay/lib/python3.9/site-packages/flit_core/common.py", line 59, in __init__
      raise ValueError("No file/folder found for module {}".format(name))
  ValueError: No file/folder found for module RayFed
  error: subprocess-exited-with-error

  × Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /Users/qingwang/anaconda3/bin/python /Users/qingwang/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_editable /var/folders/q4/6c8j2fsx34v45njdq0vdkhlm0000gp/T/tmp3fvd7gfx
  cwd: /Users/qingwang/workspace/opensource/RayFed
  Getting requirements to build editable ... error
error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
```


Discussion / hints:
This is due to we introduced `pyproject.yml`.

Fix patch:
diff --git a/pyproject.toml b/pyproject.toml
deleted file mode 100644
index f8ba4ef..0000000
--- a/pyproject.toml
+++ /dev/null
@@ -1,8 +0,0 @@
-[build-system]
-requires = ["flit_core >=3.2,<4"]
-build-backend = "flit_core.buildapi"
-
-[project]
-name = "RayFed"
-authors = [{name = "The RayFed Team", email = "rayfed-dev@googlegroups.com"}]
-dynamic = ["version", "description"]


Test patch:
diff --git a/.github/workflows/test_on_ray1.13.0.yml b/.github/workflows/test_on_ray1.13.0.yml
index 2f228a6..e53c3d1 100644
--- a/.github/workflows/test_on_ray1.13.0.yml
+++ b/.github/workflows/test_on_ray1.13.0.yml
@@ -33,5 +33,5 @@ jobs:
     - name: Build and test
       run: |
            . py3/bin/activate
-           python3 setup.py install
+           pip install -e . -v
            sh test.sh
diff --git a/.github/workflows/test_on_ray2.0.0.yml b/.github/workflows/test_on_ray2.0.0.yml
index 55d064e..c820d5a 100644
--- a/.github/workflows/test_on_ray2.0.0.yml
+++ b/.github/workflows/test_on_ray2.0.0.yml
@@ -33,5 +33,5 @@ jobs:
     - name: Build and test
       run: |
            . py3/bin/activate
-           python3 setup.py install
+           pip install -e . -v
            sh test.sh