Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.91 KB

Contributing.md

File metadata and controls

67 lines (46 loc) · 1.91 KB

Contributions

Whether they be in code, interesting feature suggestions, design critique or bug reports, all contributions are welcome. Please start an issue, before investing a lot of work. This helps avoid situations there I would feel the need to reject a large body of work, and a lot of your time has been wasted. odbc-arrow-py is a pet project and a work of love, which implies that I maintain it in my spare time. Please understand that I may not always react immediately. If you contribute code to fix a Bug, please also contribute the test to fix it. Happy contributing.

Local build and test setup

Running local tests currently requires:

  • Docker and Docker compose.
  • An ODBC driver manager
  • A driver for Microsoft SQL Server
  • Rust toolchain (cargo)
  • Python

You can install these requirements from here:

With docker installed we start the Microsoft SQL Server used for testing:

docker-compose up

Tests rely on odbcsv to fill the test db with data:

cargo install odbcsv

Inside a virtual environment install the requirements for developing/testing.

pip install -e .[test]

We now can execute the tests using:

pytest

Build wheels

python -m pip install build
python -m build

Generate documentation

Posix (with make installed)

cd docs
make html

Windows (without make)

sphinx-build -M html ./doc/source ./doc/build