Skip to content

Commit 82872f0

Browse files
Merge pull request #118 from mrakitin/rel-notes-v0.6.2
DOC: release notes for v0.6.2
2 parents 211a651 + d1e1a85 commit 82872f0

File tree

10 files changed

+62
-470
lines changed

10 files changed

+62
-470
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# This workflow will upload a Python Package using flit when a release is
2-
# created. For more information see:
3-
# https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
1+
# This workflows will upload a Python Package when a release is created.
2+
# For more information see:
3+
# - https://docs.pypi.org/trusted-publishers/adding-a-publisher/
4+
# - https://github.com/pypa/gh-action-pypi-publish
45

56
name: PyPI upload
67

@@ -12,28 +13,27 @@ jobs:
1213
publish_pypi:
1314
name: Publish package to PyPI
1415
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
1518

1619
steps:
17-
- uses: actions/checkout@v3
18-
with:
19-
fetch-depth: 0
20+
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
2023

21-
- name: Set up Python
22-
uses: actions/setup-python@v4
23-
with:
24-
python-version: '3.x'
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.x'
2528

26-
- name: Install dependencies
27-
run: |
28-
python -m pip install --upgrade pip
29-
pip install wheel twine setuptools
29+
- name: Build package
30+
run: |
31+
set -vxeuo pipefail
32+
python -m pip install --upgrade pip
33+
pip install wheel setuptools
34+
python setup.py sdist bdist_wheel
3035
31-
- name: Build and publish
32-
env:
33-
TWINE_USERNAME: __token__
34-
# The PYPI_PASSWORD must be a pypi token with the "pypi-" prefix with sufficient permissions to upload this package
35-
# https://pypi.org/help/#apitoken
36-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
37-
run: |
38-
python setup.py sdist bdist_wheel
39-
twine upload dist/*
36+
- name: Publish wheels to PyPI
37+
uses: pypa/gh-action-pypi-publish@release/v1
38+
with:
39+
packages-dir: ./dist/

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
- id: end-of-file-fixer
99
- id: trailing-whitespace
1010
- repo: https://github.com/ambv/black
11-
rev: 23.1.0
11+
rev: 23.3.0
1212
hooks:
1313
- id: black
1414
- repo: https://github.com/pycqa/flake8

docs/source/notebooks-new-api.rst renamed to docs/source/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Notebooks (new API)
2-
===================
1+
Examples
2+
========
33

44
.. toctree::
55
:maxdepth: 2

docs/source/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ sirepo-bluesky Documentation
1010
:maxdepth: 2
1111

1212
installation
13-
notebooks-old-api
14-
notebooks-new-api
13+
examples
1514
simulations
1615
release-history

docs/source/notebooks-old-api.rst

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

docs/source/notebooks/shadow.ipynb

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

0 commit comments

Comments
 (0)