Skip to content

Commit e67f068

Browse files
authored
Fix duplicated factory-boy dependency. (#1465)
Remove `factory-boy` as development dependency since it has been added as a core gt4py dependency.
1 parent ba353d3 commit e67f068

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

docs/development/tools/requirements.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The specification of required third-party packages is scattered and partially du
55
The following files in this repository contain information about required third-party packages:
66

77
- `pyproject.toml`: GT4Py [package configuration](https://peps.python.org/pep-0621/) used by the build backend (`setuptools`). Install dependencies are specified in the _project.dependencies_ and _project.optional-dependencies_ tables.
8-
- `requirements-dev.in`: [requirements file](https://pip.pypa.io/en/stable/reference/requirements-file-format/) used by **pip**. It contains a list of packages required for the development of GT4Py.
8+
- `requirements-dev.in`: [requirements file](https://pip.pypa.io/en/stable/reference/requirements-file-format/) used by **pip**. It contains a list of packages required only for the development of GT4Py.
99
- `requirements-dev.txt`: requirements file used by **pip**. It contains a completely frozen list of all packages required for installing and developing GT4Py. It is used by **pip** and **tox** to initialize the standard development and testing environments. It is automatically generated automatically from `requirements-dev.in` by **pip-compile**, when running the **tox** environment to update requirements.
1010
- `constraints.txt`: [constraints file](https://pip.pypa.io/en/stable/user_guide/#constraints-files) used by **pip** and **tox** to initialize a subset of the standard development environment making sure that if other packages are installed, transitive dependencies are taken from the frozen package list. It is generated automatically from `requirements-dev.in` using **pip-compile**.
1111
- `min-requirements-test.txt`: requirements file used by **pip**. It contains the minimum list of requirements to run GT4Py tests with the oldest compatible versions of all dependencies. It is generated automatically from `pyproject.toml` using **cog**.
@@ -16,7 +16,7 @@ The expected workflow to update GT4Py requirements is as follows:
1616

1717
1. For changes in the GT4Py package dependencies, update the relevant table in `pyproject.toml`. When adding new tables to the _project.optional-dependencies_ section, make sure to add the new table as a dependency of the `all-` extra tables when possible.
1818

19-
2. For changes in the development tools, update the `requirements-dev.in` file.
19+
2. For changes in the development tools, update the `requirements-dev.in` file. Note that required project packages already appearing in `pyproject.toml` should not be duplicated here.
2020

2121
3. Run the **tox** _requirements-base_ environment to update all files automatically with **pip-compile** and **cog**. Note that **pip-compile** will most likely update the versions of some unrelated tools if new versions are available in PyPI.
2222

min-extra-requirements-test.txt

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ dace==0.15.1
6464
darglint==1.6
6565
deepdiff==5.6.0
6666
devtools==0.6
67-
factory-boy==3.1
6867
factory-boy==3.3.0
6968
flake8-bugbear==20.11.1
7069
flake8-builtins==1.5.3

min-requirements-test.txt

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ cytoolz==0.12.1
6060
darglint==1.6
6161
deepdiff==5.6.0
6262
devtools==0.6
63-
factory-boy==3.1
6463
factory-boy==3.3.0
6564
flake8-bugbear==20.11.1
6665
flake8-builtins==1.5.3

requirements-dev.in

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ clang-format>=9.0
99
cogapp>=3.3
1010
coverage[toml]>=5.0
1111
darglint>=1.6
12-
factory-boy>=3.1
1312
flake8>=5.0.4
1413
flake8-bugbear>=20.11.1
1514
flake8-builtins>=1.5.3

0 commit comments

Comments
 (0)