Skip to content

Commit

Permalink
Merge pull request #14 from chrishavlin/more_repo_setup
Browse files Browse the repository at this point in the history
More project config
  • Loading branch information
chrishavlin authored Oct 4, 2024
2 parents 1e38a4b + 1c6cf78 commit 3b4285d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
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="[email protected]"},
]
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

0 comments on commit 3b4285d

Please sign in to comment.