Skip to content

Commit d01e054

Browse files
authored
Upgrade to new platform APIs (#79)
* Add pypi publish workflow
1 parent b35de88 commit d01e054

File tree

15 files changed

+250
-327
lines changed

15 files changed

+250
-327
lines changed

.github/workflows/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: setup-python
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: "3.11"
18+
architecture: "x64"
19+
- name: install pypa/build
20+
run: >-
21+
python -m
22+
pip install
23+
build
24+
--user
25+
- name: build sdist(tarball) and bdist(wheel) to dist/
26+
run: >- # = python -m build . works the same way by default
27+
python -m
28+
build
29+
--sdist
30+
--wheel
31+
--outdir dist/
32+
- name: publish to PyPI
33+
uses: pypa/gh-action-pypi-publish@release/v1
34+
with:
35+
repository-url: https://upload.pypi.org/legacy/

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,6 @@ cython_debug/
161161
# and can be added to the global gitignore or merged into this file. For a more nuclear
162162
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
163163
#.idea/
164+
165+
# vim
166+
.*.swp

centml/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
from .compile import compile
2-
3-
__all__ = ["compile"]
1+
from centml.compiler.main import compile

0 commit comments

Comments
 (0)