Repository: danpovey/lilcom (language: python)

Issue:
Does not work with python 3.12
```
conda install -c lilcom lilcom


Retrieving notices: ...working... done
Channels:
 - lilcom
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: - warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package lilcom-1.4-py3.10 requires python >=3.10,<3.11.0a0, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ lilcom is installable with the potential options
│  ├─ lilcom [1.4|1.5] would require
│  │  └─ python >=3.10,<3.11.0a0 , which can be installed;
│  ├─ lilcom [1.4|1.5] would require
│  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│  ├─ lilcom [1.4|1.5] would require
│  │  └─ python >=3.6,<3.7.0a0 , which can be installed;
│  ├─ lilcom [1.4|1.5] would require
│  │  └─ python >=3.8,<3.9.0a0 , which can be installed;
│  └─ lilcom [1.4|1.5] would require
│     └─ python >=3.9,<3.10.0a0 , which can be installed;
└─ pin-1 is not installable because it requires
   └─ python 3.12.* , which conflicts with any installable versions previously reported.

Pins seem to be involved in the conflict. Currently pinned specs:
 - python 3.12.* (labeled as 'pin-1')

```


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/build-wheels-aarch64.yaml b/.github/workflows/build-wheels-aarch64.yaml
index 3d37954..e47fdac 100644
--- a/.github/workflows/build-wheels-aarch64.yaml
+++ b/.github/workflows/build-wheels-aarch64.yaml
@@ -32,7 +32,7 @@ jobs:
       # see https://cibuildwheel.readthedocs.io/en/stable/changelog/
       # for a list of versions
       - name: Build wheels
-        uses: pypa/cibuildwheel@v2.13.1
+        uses: pypa/cibuildwheel@v2.16.5
         env:
           CIBW_BEFORE_BUILD: "pip install -U cmake numpy"
           CIBW_SKIP: "cp27-* cp35-* pp* *-musllinux*"
diff --git a/.github/workflows/build-wheels-macos.yaml b/.github/workflows/build-wheels-macos.yaml
index 9fdc0cd..c7e9b38 100644
--- a/.github/workflows/build-wheels-macos.yaml
+++ b/.github/workflows/build-wheels-macos.yaml
@@ -27,7 +27,7 @@ jobs:
       # see https://cibuildwheel.readthedocs.io/en/stable/changelog/
       # for a list of versions
       - name: Build wheels
-        uses: pypa/cibuildwheel@v2.11.4
+        uses: pypa/cibuildwheel@v2.16.5
         env:
           CIBW_BEFORE_BUILD: "pip install -U cmake numpy"
           CIBW_SKIP: "cp27-* cp35-* *-win32 pp* *-musllinux*"
@@ -51,8 +51,8 @@ jobs:
           TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
           TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
         run: |
-          python3 -m pip install --upgrade pip
-          python3 -m pip install wheel twine setuptools
+          python3 -m pip install --break-system-packages=true --upgrade pip
+          python3 -m pip install --break-system-packages=true wheel twine setuptools
 
           twine upload ./wheelhouse/*.whl
 
diff --git a/.github/workflows/build-wheels-win64.yaml b/.github/workflows/build-wheels-win64.yaml
index 13e3e19..74b760f 100644
--- a/.github/workflows/build-wheels-win64.yaml
+++ b/.github/workflows/build-wheels-win64.yaml
@@ -27,10 +27,10 @@ jobs:
       # see https://cibuildwheel.readthedocs.io/en/stable/changelog/
       # for a list of versions
       - name: Build wheels
-        uses: pypa/cibuildwheel@v2.11.4
+        uses: pypa/cibuildwheel@v2.16.5
         env:
           CIBW_BEFORE_BUILD: "pip install -U cmake numpy"
-          CIBW_SKIP: "cp311-* cp312-* *-win32 pp*"
+          CIBW_SKIP: "*-win32 pp*"
           CIBW_BUILD_VERBOSITY: 3
 
       - name: Display wheels
diff --git a/.github/workflows/build-wheels.yaml b/.github/workflows/build-wheels.yaml
index 3662fa7..ecee4e3 100644
--- a/.github/workflows/build-wheels.yaml
+++ b/.github/workflows/build-wheels.yaml
@@ -27,7 +27,7 @@ jobs:
       # see https://cibuildwheel.readthedocs.io/en/stable/changelog/
       # for a list of versions
       - name: Build wheels
-        uses: pypa/cibuildwheel@v2.11.4
+        uses: pypa/cibuildwheel@v2.16.5
         env:
           CIBW_BEFORE_BUILD: "pip install -U cmake numpy"
           CIBW_SKIP: "cp27-* cp35-* pp* *-musllinux*"
diff --git a/.github/workflows/build_conda_macos.yml b/.github/workflows/build_conda_macos.yml
index c5e3769..7e69d0b 100644
--- a/.github/workflows/build_conda_macos.yml
+++ b/.github/workflows/build_conda_macos.yml
@@ -6,6 +6,7 @@ on:
       - '*'
     branches:
       - conda
+  workflow_dispatch:
 
 concurrency:
   group: build_conda_macos-${{ github.ref }}
@@ -17,8 +18,8 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [macos-latest]
-        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
+        os: [macos-latest, macos-14]
+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
 
     steps:
       # refer to https://github.com/actions/checkout
@@ -26,7 +27,7 @@ jobs:
         with:
           fetch-depth: 0
 
-      - uses: conda-incubator/setup-miniconda@v2
+      - uses: conda-incubator/setup-miniconda@v3
         with:
           auto-update-conda: true
           python-version: ${{ matrix.python-version }}
@@ -59,12 +60,12 @@ jobs:
         run: |
           ./scripts/build_conda.sh
 
-      - name: Display generated files
-        run: |
-          ls -lh /usr/local/miniconda/envs/lilcom/conda-bld/osx-64
+      # - name: Display generated files
+      #   run: |
+      #     ls -lh /usr/local/miniconda/envs/lilcom/conda-bld/osx-*
 
-      - name: Upload generated files
-        uses: actions/upload-artifact@v2
-        with:
-          name: cpu-python-${{ matrix.python-version }}-${{ matrix.os }}
-          path: /usr/local/miniconda/envs/lilcom/conda-bld/osx-64/*.tar.bz2
+      # - name: Upload generated files
+      #   uses: actions/upload-artifact@v2
+      #   with:
+      #     name: cpu-python-${{ matrix.python-version }}-${{ matrix.os }}
+      #     path: /usr/local/miniconda/envs/lilcom/conda-bld/osx-*/*.tar.bz2
diff --git a/.github/workflows/build_conda_ubuntu.yml b/.github/workflows/build_conda_ubuntu.yml
index af683d8..0849cb5 100644
--- a/.github/workflows/build_conda_ubuntu.yml
+++ b/.github/workflows/build_conda_ubuntu.yml
@@ -6,6 +6,7 @@ on:
       - '*'
     branches:
       - conda
+  workflow_dispatch:
 
 concurrency:
   group: build_conda_ubuntu-${{ github.ref }}
@@ -18,7 +19,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [ubuntu-latest]
-        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
 
     steps:
       # refer to https://github.com/actions/checkout
@@ -26,7 +27,7 @@ jobs:
         with:
           fetch-depth: 0
 
-      - uses: conda-incubator/setup-miniconda@v2
+      - uses: conda-incubator/setup-miniconda@v3
         with:
           auto-update-conda: true
           python-version: ${{ matrix.python-version }}
diff --git a/.github/workflows/build_conda_windows.yml b/.github/workflows/build_conda_windows.yml
index 334b0c9..cacf77f 100644
--- a/.github/workflows/build_conda_windows.yml
+++ b/.github/workflows/build_conda_windows.yml
@@ -6,6 +6,7 @@ on:
       - '*'
     branches:
       - conda
+  workflow_dispatch:
 
 concurrency:
   group: build_conda_windows-${{ github.ref }}
@@ -18,7 +19,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [windows-latest]
-        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
 
     steps:
       # refer to https://github.com/actions/checkout
@@ -26,7 +27,7 @@ jobs:
         with:
           fetch-depth: 0
 
-      - uses: conda-incubator/setup-miniconda@v2
+      - uses: conda-incubator/setup-miniconda@v3
         with:
           auto-update-conda: true
           python-version: ${{ matrix.python-version }}
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f6370c8..9b39751 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
 project(lilcom)
 
 # Remember to also change the line 3 of ./scripts/conda/lilcom/meta.yaml
-set(LILCOM_VERSION "1.7")
+set(LILCOM_VERSION "1.8.0")
 
 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
diff --git a/scripts/conda/lilcom/meta.yaml b/scripts/conda/lilcom/meta.yaml
index 8b724c5..776d53d 100644
--- a/scripts/conda/lilcom/meta.yaml
+++ b/scripts/conda/lilcom/meta.yaml
@@ -1,6 +1,6 @@
 package:
   name: lilcom
-  version: "1.7"
+  version: "1.8.0"
 
 source:
   path: "{{ environ.get('LILCOM_ROOT_DIR') }}"


Test patch:
diff --git a/.github/workflows/nightly-test.yaml b/.github/workflows/nightly-test.yaml
index 085cee9..945a46e 100644
--- a/.github/workflows/nightly-test.yaml
+++ b/.github/workflows/nightly-test.yaml
@@ -4,6 +4,7 @@ on:
   push:
     branches:
       - nightly
+  workflow_dispatch:
   schedule:
     # minute (0-59)
     # hour (0-23)
@@ -20,7 +21,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [ubuntu-latest, macos-latest, windows-latest]
-        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
 
     steps:
       - uses: actions/checkout@v2
diff --git a/.github/workflows/test-pip-install.yaml b/.github/workflows/test-pip-install.yaml
index 0248f08..c9be2fe 100644
--- a/.github/workflows/test-pip-install.yaml
+++ b/.github/workflows/test-pip-install.yaml
@@ -4,6 +4,7 @@ on:
   push:
     branches:
       - nightly
+  workflow_dispatch:
   schedule:
     # minute (0-59)
     # hour (0-23)
@@ -27,7 +28,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [ubuntu-latest, macos-latest, windows-latest]
-        python-version: ["3.7", "3.8", "3.9", "3.10"]
+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
 
     steps:
       - uses: actions/checkout@v2
diff --git a/.github/workflows/test-ubuntu-macos.yaml b/.github/workflows/test-ubuntu-macos.yaml
index 6ff7645..2477b06 100644
--- a/.github/workflows/test-ubuntu-macos.yaml
+++ b/.github/workflows/test-ubuntu-macos.yaml
@@ -7,6 +7,7 @@ on:
   pull_request:
     branches:
       - master
+  workflow_dispatch:
 
 jobs:
   test_ubuntu_and_macos:
@@ -15,7 +16,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [ubuntu-latest, macos-latest]
-        python-version: ["3.7", "3.8", "3.9", "3.10"]
+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
 
     steps:
       - uses: actions/checkout@v2
diff --git a/.github/workflows/test-windows.yaml b/.github/workflows/test-windows.yaml
index f1f96f3..89e42f6 100644
--- a/.github/workflows/test-windows.yaml
+++ b/.github/workflows/test-windows.yaml
@@ -7,6 +7,7 @@ on:
   pull_request:
     branches:
       - master
+  workflow_dispatch:
 
 jobs:
   test_windows:
@@ -15,7 +16,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [windows-latest]
-        python-version: ["3.9", "3.10"]
+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
 
     steps:
       - uses: actions/checkout@v2