Skip to content

Commit 2030794

Browse files
committed
prepare release 1.0 - testpypi
1 parent 28b4a1d commit 2030794

File tree

8 files changed

+111
-9
lines changed

8 files changed

+111
-9
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Docs
22

3-
on: [push, workflow_dispatch]
3+
on: [workflow_dispatch]
44

55
jobs:
66
docs:

.github/workflows/lint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Lint
22

3-
on: [push]
3+
on:
4+
push:
5+
workflow_call:
6+
workflow_dispatch:
47

58
jobs:
69
lint:

.github/workflows/release.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
name: Build & upload PyPI package
3+
4+
on:
5+
push:
6+
branches: [main]
7+
tags: ["*"]
8+
release:
9+
types:
10+
- published
11+
workflow_dispatch:
12+
13+
14+
jobs:
15+
lint:
16+
uses: "./.github/workflows/test.yaml"
17+
tests:
18+
uses: "./.github/workflows/lint.yaml"
19+
variants:
20+
uses: "./.github/workflows/variants.yaml"
21+
typecheck:
22+
uses: "./.github/workflows/typecheck.yaml"
23+
24+
# Always build & lint package.
25+
build-package:
26+
name: Build & verify package
27+
needs:
28+
- tests
29+
runs-on: ubuntu-latest
30+
permissions:
31+
attestations: write
32+
id-token: write
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
fetch-depth: 0
38+
persist-credentials: false
39+
40+
- uses: hynek/build-and-inspect-python-package@v2
41+
with:
42+
attest-build-provenance-github: 'true'
43+
44+
# Upload to Test PyPI on every commit on main.
45+
release-test-pypi:
46+
name: Publish in-dev package to test.pypi.org
47+
environment: release-test-pypi
48+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
49+
runs-on: ubuntu-latest
50+
needs:
51+
- build-package
52+
permissions:
53+
id-token: write
54+
55+
steps:
56+
- name: Download packages built by build-and-inspect-python-package
57+
uses: actions/download-artifact@v4
58+
with:
59+
name: Packages
60+
path: dist
61+
62+
- name: Upload package to Test PyPI
63+
uses: pypa/gh-action-pypi-publish@release/v1
64+
with:
65+
repository-url: https://test.pypi.org/legacy/
66+
67+
# Upload to real PyPI on GitHub Releases.
68+
release-pypi:
69+
name: Publish released package to pypi.org
70+
environment: release-pypi
71+
if: github.event.action == 'published'
72+
runs-on: ubuntu-latest
73+
needs:
74+
- build-package
75+
permissions:
76+
id-token: write
77+
78+
steps:
79+
- name: Download packages built by build-and-inspect-python-package
80+
uses: actions/download-artifact@v4
81+
with:
82+
name: Packages
83+
path: dist
84+
85+
- name: Upload package to PyPI
86+
uses: pypa/gh-action-pypi-publish@release/v1
87+
docs:
88+
needs:
89+
- release-pypi
90+
uses: "./.github/workflows/docs.yaml"

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Tests
22

3-
on: [push]
3+
on:
4+
push:
5+
workflow_call:
6+
workflow_dispatch:
47

58
jobs:
69
build:

.github/workflows/typecheck.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Type checks
22

3-
on: [push]
3+
on:
4+
push:
5+
workflow_call:
6+
workflow_dispatch:
47

58
jobs:
69
build:

.github/workflows/variants.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Python/VENV/Installer Variants
22

3-
on: [push]
3+
on:
4+
push:
5+
workflow_call:
6+
workflow_dispatch:
47

58
jobs:
69
build:

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 1.0a9 (unreleased)
3+
## 1.0 (unreleased)
44

55

66
- Fix `zope.mk`, wrong config file was passed to zconsole.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
[project]
22
name = "mxmake"
33
description = "Generates a Python project-specific Makefile by using an extensible library of configurable Makefile snippets."
4-
version = "1.0a9.dev0"
4+
version = "1.0.dev1"
55
keywords = ["development", "deployment", "make"]
66
authors = [
77
{name = "MX Stack Developers", email = "dev@bluedynamics.com" }
88
]
99
requires-python = ">=3.9"
1010
license = { text = "BSD 2-Clause License" }
1111
classifiers = [
12-
"Development Status :: 3 - Alpha",
12+
"Development Status :: 5 - Production/Stable",
1313
"Intended Audience :: Developers",
1414
"Topic :: Software Development :: Build Tools",
1515
"License :: OSI Approved :: BSD License",
1616
"Operating System :: OS Independent",
1717
"Programming Language :: Python",
18-
"Programming Language :: Python :: 3.8",
1918
"Programming Language :: Python :: 3.9",
2019
"Programming Language :: Python :: 3.10",
2120
"Programming Language :: Python :: 3.11",
2221
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
2323
]
2424
dependencies = [
2525
"inquirer",

0 commit comments

Comments
 (0)