From 1ea0a5ae0ada5d1695074851fd31eb77bb255361 Mon Sep 17 00:00:00 2001 From: Kartik Singhal Date: Tue, 26 Sep 2023 17:29:27 -0500 Subject: [PATCH] Python 3.10 on the CI as well, add version to reqs file --- .github/workflows/python-app.yml | 22 +++------------------- docs/__init__.py | 0 docs/index.rst | 4 ++-- requirements.txt | 15 ++++++++------- 4 files changed, 13 insertions(+), 28 deletions(-) create mode 100644 docs/__init__.py diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 75be90f..b7df9fe 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.11 + - uses: actions/checkout@v4 + - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.11 + python-version: 3.10 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -24,23 +24,7 @@ jobs: python -m pip install -e . - name: Pre-commit checks run: | - python -m pip install pre-commit pre-commit run --all-files - name: Run tests run: | python -m pytest - - - - # TODO in the future - # - name: Sphinx documentation build - # run: | - # python -m pip install sphinx - # sphinx-build -b html docs/ docs/_build/ - - # - name: Build and push Docker image - # uses: docker/build-push-action@v2 - # with: - # context: . - # push: true - # tags: nathfitz/test:latest \ No newline at end of file diff --git a/docs/__init__.py b/docs/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/docs/index.rst b/docs/index.rst index be909b2..3d73a6f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -25,7 +25,7 @@ To use pytket-phir, import the main module: .. code-block:: python - from pytket-phir import main + from pytket.phir import main main.run() @@ -36,6 +36,6 @@ The utils module contains various utility functions that can be used in conjunct .. code-block:: python - from pytket-phir import utils + from pytket.phir import utils utils.do_something() diff --git a/requirements.txt b/requirements.txt index 26a896a..214e0e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,9 @@ -black -build +black==23.9.1 +build==1.0.3 lark-parser==0.12.0 -mypy -pre-commit -pytest -sphinx -wheel +mypy==1.5.1 +pre-commit==3.4.0 +pytest==7.4.2 +ruff==0.0.291 +sphinx==7.2.6 +wheel==0.41.2