Skip to content

Commit 625bd54

Browse files
authored
Changes for project configuration and deployment via CI (#1274)
1 parent bffff90 commit 625bd54

17 files changed

Lines changed: 208 additions & 83 deletions

File tree

data/templates/appveyor.yml/artifacts

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/templates/appveyor.yml/build

Lines changed: 0 additions & 4 deletions
This file was deleted.

data/templates/appveyor.yml/deploy_script

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11

22
install:
3-
- cmd: "%PYTHON%\\python.exe -m pip install -U build pip setuptools twine wheel"

data/templates/appveyor.yml/matrix

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,3 @@
1313
PYTHON_VERSION: "3.14"
1414
L2TBINARIES_TRACK: "dev"
1515
TARGET: tests
16-
- DESCRIPTION: "Build wheel on Windows with 32-bit Python 3.14"
17-
MACHINE_TYPE: "amd64"
18-
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
19-
PYTHON: "C:\\Python314-x64"
20-
PYTHON_VERSION: "3.14"
21-
L2TBINARIES_TRACK: "dev"
22-
TARGET: wheel
23-
- DESCRIPTION: "Build wheel on Windows with 64-bit Python 3.14"
24-
MACHINE_TYPE: "amd64"
25-
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
26-
PYTHON: "C:\\Python314-x64"
27-
PYTHON_VERSION: "3.14"
28-
L2TBINARIES_TRACK: "dev"
29-
TARGET: wheel

data/templates/appveyor.yml/pypi_token

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Build Python sdist and wheel.
2+
name: build_wheels
3+
on:
4+
pull_request:
5+
push:
6+
release:
7+
types: [published]
8+
# Allow trigger via API
9+
workflow_dispatch:
10+
permissions: read-all
11+
jobs:
12+
build_sdist:
13+
name: Build sdist
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
- name: Install build dependencies
18+
run: |
19+
sudo apt update
20+
sudo apt -y install python3-build
21+
- name: Build sdist
22+
run: |
23+
python -m build --sdist
24+
- uses: actions/upload-artifact@v7
25+
with:
26+
name: cibw-sdist
27+
path: dist/*.tar.gz
28+
build_wheel:
29+
name: Build wheel
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v6
33+
- name: Install build dependencies
34+
run: |
35+
sudo apt update
36+
sudo apt -y install python3-build python3-wheel
37+
- name: Build wheel
38+
run: |
39+
python -m build --wheel
40+
- uses: actions/upload-artifact@v7
41+
with:
42+
name: cibw-wheels
43+
path: dist/*.whl
44+
upload_test_pypi:
45+
needs: [build_sdist, build_wheel]
46+
runs-on: ubuntu-latest
47+
environment: pypi
48+
permissions:
49+
id-token: write
50+
if: github.event_name == 'release' && github.event.action == 'published'
51+
steps:
52+
- uses: actions/download-artifact@v8
53+
with:
54+
pattern: cibw-*
55+
path: dist
56+
merge-multiple: true
57+
- uses: pypa/gh-action-pypi-publish@release/v1
58+
with:
59+
repository-url: https://test.pypi.org/legacy/
60+
upload_pypi:
61+
needs: [upload_test_pypi]
62+
runs-on: ubuntu-latest
63+
environment: pypi
64+
permissions:
65+
id-token: write
66+
if: github.event_name == 'release' && github.event.action == 'published'
67+
steps:
68+
- uses: actions/download-artifact@v8
69+
with:
70+
pattern: cibw-*
71+
path: dist
72+
merge-multiple: true
73+
- uses: pypa/gh-action-pypi-publish@release/v1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
[tool.black]
33
line-length = 88
4-
target-version = ["py310"]
4+
target-version = ["${black_target_version}"]
55
include = "\\.pyi?$$"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
[tool.l2tdevtools]
3+
name = "${name_description}"
4+
status = "${status}"
5+
description = """
6+
${description_long}
7+
"""

data/templates/pyproject.toml/project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ classifiers = [
1313
"${development_status}",
1414
"Programming Language :: Python",
1515
]
16-
requires-python = ">=3.10"
16+
requires-python = ">=${minimum_python_version}"

0 commit comments

Comments
 (0)