Jeremiah Lowin commited on
Commit
78fb1f7
·
1 Parent(s): 132a056

Update dependencies

Browse files
Files changed (3) hide show
  1. .github/workflows/run-tests.yml +1 -1
  2. README.md +5 -8
  3. pyproject.toml +3 -5
.github/workflows/run-tests.yml CHANGED
@@ -46,7 +46,7 @@ jobs:
46
  run: uv python install ${{ matrix.python-version }}
47
 
48
  - name: Install FastMCP
49
- run: uv sync --extra dev
50
 
51
  - name: Run tests
52
  run: uv run pytest -vv
 
46
  run: uv python install ${{ matrix.python-version }}
47
 
48
  - name: Install FastMCP
49
+ run: uv sync --extra tests
50
 
51
  - name: Run tests
52
  run: uv run pytest -vv
README.md CHANGED
@@ -464,23 +464,20 @@ FastMCP requires Python 3.10+ and [uv](https://docs.astral.sh/uv/).
464
 
465
  ### Installation
466
 
467
- Create a fork of this repository, then clone it:
468
 
469
  ```bash
470
- git clone https://github.com/YouFancyUserYou/fastmcp.git
471
  cd fastmcp
 
472
  ```
473
 
474
- Next, create a virtual environment and install FastMCP:
475
 
476
  ```bash
477
- uv venv
478
- source .venv/bin/activate
479
- uv sync --frozen --all-extras --dev
480
  ```
481
 
482
-
483
-
484
  ### Testing
485
 
486
  Please make sure to test any new functionality. Your tests should be simple and atomic and anticipate change rather than cement complex patterns.
 
464
 
465
  ### Installation
466
 
467
+ For development, we recommend installing FastMCP with development dependencies, which includes various utilities the maintainers find useful.
468
 
469
  ```bash
470
+ git clone https://github.com/jlowin/fastmcp.git
471
  cd fastmcp
472
+ uv sync --frozen --extra dev
473
  ```
474
 
475
+ For running tests only (e.g., in CI), you only need the testing dependencies:
476
 
477
  ```bash
478
+ uv sync --frozen --extra tests
 
 
479
  ```
480
 
 
 
481
  ### Testing
482
 
483
  Please make sure to test any new functionality. Your tests should be simple and atomic and anticipate change rather than cement complex patterns.
pyproject.toml CHANGED
@@ -23,16 +23,14 @@ requires = ["hatchling>=1.21.0", "hatch-vcs>=0.4.0"]
23
  build-backend = "hatchling.build"
24
 
25
  [project.optional-dependencies]
26
- dev = [
27
- "copychat>=0.5.2",
28
- "ipython>=8.12.3",
29
- "pdbpp>=0.10.3",
30
  "pre-commit",
31
- "pytest-xdist>=3.6.1",
32
  "pytest>=8.3.3",
33
  "pytest-asyncio>=0.23.5",
 
34
  "ruff",
35
  ]
 
36
 
37
  [tool.pytest.ini_options]
38
  asyncio_mode = "auto"
 
23
  build-backend = "hatchling.build"
24
 
25
  [project.optional-dependencies]
26
+ tests = [
 
 
 
27
  "pre-commit",
 
28
  "pytest>=8.3.3",
29
  "pytest-asyncio>=0.23.5",
30
+ "pytest-xdist>=3.6.1",
31
  "ruff",
32
  ]
33
+ dev = ["fastmcp[tests]", "copychat>=0.5.2", "ipython>=8.12.3", "pdbpp>=0.10.3"]
34
 
35
  [tool.pytest.ini_options]
36
  asyncio_mode = "auto"