Skip to content

Commit 2a5983f

Browse files
authored
Use PDM (#66)
1 parent bff7990 commit 2a5983f

File tree

15 files changed

+723
-501
lines changed

15 files changed

+723
-501
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @regen100

.github/workflows/tests.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,33 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
python: ["3.7", "3.8", "3.9", "3.10"]
16-
os: [ubuntu-18.04, windows-2019]
16+
os: [ubuntu-22.04, windows-2022]
1717
steps:
18-
- uses: actions/checkout@v2
18+
- name: Checkout
19+
uses: actions/checkout@v3
1920
- name: Set up Python ${{ matrix.python }}
20-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v4
2122
with:
2223
python-version: ${{ matrix.python }}
24+
- name: Set up PDM
25+
uses: pdm-project/setup-pdm@v3
26+
with:
27+
python-version: ${{ matrix.python }}
28+
cache: true
2329
- name: Setup VC
2430
uses: ilammy/msvc-dev-cmd@v1
2531
if: contains(matrix.os, 'windows')
2632
- name: Install CMake
2733
if: contains(matrix.os, 'ubuntu')
2834
run: |
29-
CMAKE_VERSION=3.17.3
30-
curl -sSL https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz | tar xz
31-
sudo cp -rT cmake-$CMAKE_VERSION-Linux-x86_64 /usr/local
32-
rm -rf cmake-$CMAKE_VERSION-Linux-x86_64
35+
CMAKE_VERSION=3.25.1
36+
curl -sSL https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz | tar xz
37+
sudo cp -rT cmake-${CMAKE_VERSION}-linux-x86_64 /usr/local
3338
- name: Install dependencies
3439
run: |
3540
cmake --version
3641
python -m pip install --upgrade setuptools pip wheel
37-
python -m pip install poetry tox-gh-actions
42+
python -m pip install tox tox-gh-actions tox-pdm
3843
- name: Test with tox
3944
run: |
4045
tox

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
__pycache__/
2+
23
.tox/
4+
35
.coverage
46
coverage.xml
7+
8+
.pdm.toml
9+
__pypackages__/

cmake_language_server/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .version import __version__
2+
3+
__all__ = ["__version__"]
File renamed without changes.
File renamed without changes.

cmake_language_server/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "dev"

0 commit comments

Comments
 (0)