Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More project config #14

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/build_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
workflow_dispatch:
release:
types:
- created
- published
pull_request:
paths:
- .github/workflows/build_and_publish.yaml
push:
tags:
- 'v*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -64,6 +66,22 @@ jobs:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: wheelhouse/*.whl

create_gh_draft_release:
needs: [build_wheels, make_sdist]
runs-on: ubuntu-latest
permissions:
contents: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
tag: ${{ github.ref }}
prerelease: false
name: Release ${{ github.ref }}

upload_all:
needs: [build_wheels, make_sdist]
environment: pypi
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Run tests
on: [pull_request]

on:
workflow_dispatch:
pull_request:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta"

[project]
name = "yt_experiments"
version = "0.1.0"
authors = [
{ name="The yt project", email="yt-dev@python.org"},
]
Expand All @@ -18,6 +17,11 @@ classifiers = [
"License :: OSI Approved :: BSD License",
]
dependencies=['yt>4.2.0', 'numpy']
dynamic = ["version"]

[tool.setuptools.dynamic]
version = {attr = "yt_experiments.__version__"}


[project.readme]
file = "README.md"
Expand Down
Loading