Skip to content

Commit

Permalink
Modify appveyor and pyproject
Browse files Browse the repository at this point in the history
This commit modifies `appveyor/install.cmd` to use the `pyproject.toml`
file. During testing of this branch, appveyor's logs show the following.

```
call .\appveyor\install.cmd
*** pip install pytest and other dev requirements ***
  DEPRECATION: typed-ast is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
```

This occurs because the appveyor file installs dependencies with pip
using a requirements-dev.txt file.

```
"%PYTHON_HOME%\python" -m pip install -r requirements-dev.txt --quiet --no-warn-script-location
```

The `pyproject.toml` file has been updated with the version numbers of
tools found in `requirements-dev.txt`, and two additional arrays have
been added to the optional-dependencies table; `qa` and `test`. We will
use these arrays to install optional runtime dependencies used for QA
and testing. Since tests for the `fetchdictarray` feature have not been
completed, the optional runtime dependency of NumPy has not been added
to the appveyor install.cmd script.
  • Loading branch information
ndmlny-qs committed Sep 15, 2023
1 parent f11691e commit e4f0692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appveyor/install.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ECHO *** pip install pytest and other dev requirements ***
"%PYTHON_HOME%\python" -m pip install -r requirements-dev.txt --quiet --no-warn-script-location
"%PYTHON_HOME%\python" -m pip install .[qa,test] --quiet --no-warn-script-location
ECHO.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ Homepage = "https://github.com/mkleehammer/pyodbc"

[project.optional-dependencies]
numpy = ["numpy"]
qa = ["flake8", "pylint"]
test = ["pytest ~= 7.3"]

[build-system]
requires = ["setuptools", "numpy"]
requires = ["setuptools ~= 67.7", "numpy"]
build-backend = "setuptools.build_meta"

0 comments on commit e4f0692

Please sign in to comment.