Skip to content

Commit b18b05f

Browse files
authored
Merge pull request #111 from ToFuProject/devel
Prepare 0.0.22
2 parents dd08969 + 608cf27 commit b18b05f

13 files changed

+145
-398
lines changed

.github/workflows/python-publish.yml renamed to .github/workflows/python-publish-sdist.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,17 @@ on:
1818
types: [created]
1919

2020
jobs:
21-
deploy:
22-
21+
pypi:
22+
name: Publish sdist to Pypi
2323
runs-on: ubuntu-latest
24-
2524
steps:
26-
- uses: actions/checkout@v2
27-
- name: Set up Python
28-
uses: actions/setup-python@v2
29-
with:
30-
python-version: '3.8'
31-
- name: Install dependencies
32-
run: |
33-
python -m pip install --upgrade pip
34-
pip install setuptools wheel twine build
35-
- name: Build package
36-
run: python -m build
37-
- name: Publish package
38-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
39-
with:
40-
user: __token__
41-
password: ${{ secrets.PYPI_API_TOKEN }}
25+
- uses: actions/checkout@v4
26+
- uses: astral-sh/setup-uv@v5
27+
with:
28+
python-version: '3.11'
29+
- run: uv build --sdist
30+
# Check that basic features work and we didn't miss to include crucial files
31+
- name: import test (sdist)
32+
run: uv run --isolated --no-project -p 3.11 --with dist/*.tar.gz bsplines2d/tests/prepublish.py
33+
- name: publish
34+
run: uv publish -t ${{ secrets.PYPI_API_TOKEN }}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package wheels
10+
11+
on:
12+
push:
13+
tags:
14+
- '*'
15+
branches:
16+
- main
17+
release:
18+
types: [created]
19+
20+
jobs:
21+
pypi:
22+
name: Publish wheel to Pypi
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
os: [ubuntu-latest, windows-latest, macos-latest]
27+
python-version: ["3.8", "3.9", "3.10", "3.11"]
28+
runs-on: ${{ matrix.os }}
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: astral-sh/setup-uv@v5
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
- run: uv build --wheel
35+
# Check that basic features work and we didn't miss to include crucial files
36+
- name: import test (wheel)
37+
run: uv run --isolated --no-project -p ${{ matrix.python-version }} --with dist/*.whl bsplines2d/tests/prepublish.py
38+
- name: publish
39+
run: uv publish -t ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-testing-branch.yml

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

.github/workflows/python-testing-matrix-devel.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Testing matrix
5+
6+
on:
7+
push:
8+
branches: [ devel ]
9+
pull_request:
10+
branches: [ devel ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
fail-fast: true
19+
matrix:
20+
os: [ubuntu-latest, windows-latest, macos-latest]
21+
python-version: ["3.8", "3.9", "3.10", "3.11"]
22+
23+
steps:
24+
25+
# git checkout
26+
- uses: actions/checkout@v4
27+
28+
# Install uv
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v5
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
34+
# Install library
35+
- name: Install the project
36+
run: uv sync --all-extras --dev
37+
38+
# Run tests
39+
- name: Run tests
40+
# For example, using `pytest`
41+
run: uv run pytest bsplines2d/tests

CLASSIFIERS.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Development Status :: 5 - Production/Stable
2+
Intended Audience :: Science/Research
3+
Programming Language :: Python :: 3
4+
Programming Language :: Python :: 3.6
5+
Programming Language :: Python :: 3.7
6+
Programming Language :: Python :: 3.8
7+
Programming Language :: Python :: 3.9
8+
Programming Language :: Python :: 3.10
9+
Programming Language :: Python :: 3.11
10+
Natural Language :: English

LICENSE

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

MANIFEST.in

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

_updateversion.py

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

bsplines2d/tests/prepublish.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
print('test import datastock')
2+
import datastock as ds
3+
print('import datastock ok')

0 commit comments

Comments
 (0)