Skip to content
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
19 changes: 12 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,28 @@ permissions:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
python-version: "3.x"

- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build
pip install build twine

- name: Build package
run: python -m build

- name: Check package
run: twine check dist/*

- name: Publish package
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
user: __token__
Expand Down
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"

[project]
name = "ipcmagic"
dynamic = ["version"]
description = "IPyParallel magics for Jupyter notebooks"
readme = "README.md"
license = "BSD-3-Clause"

dependencies = [
"ipython>=6.3.0",
"docopt>=0.6.2",
"ipyparallel>=8.2.1",
]

[project.optional-dependencies]
dask = [
"dask[complete]>=2022.05.0"
]

[project.urls]
Homepage = "https://github.com/eth-cscs/ipcluster_magic"

[tool.setuptools.dynamic]
version = {attr = "ipcmagic.version.VERSION"}
30 changes: 0 additions & 30 deletions setup.py

This file was deleted.

Loading