Skip to content

Commit b9e870c

Browse files
committed
Merge branch 'main' into cudmore-dev
2 parents f365b79 + cb14394 commit b9e870c

8 files changed

Lines changed: 96 additions & 73 deletions

File tree

.github/workflows/publish_no_pypi.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
name: Build distribution 📦
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.x"
16+
- name: Install pypa/build
17+
run: >-
18+
python3 -m
19+
pip install
20+
build
21+
. # abb
22+
--user
23+
- name: Build a binary wheel and a source tarball
24+
run: python3 -m build
25+
- name: Store the distribution packages
26+
uses: actions/upload-artifact@v3
27+
with:
28+
name: python-package-distributions
29+
path: dist/
30+
31+
publish-to-pypi:
32+
name: >-
33+
Publish Python 🐍 distribution 📦 to PyPI
34+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
35+
needs:
36+
- build
37+
runs-on: ubuntu-latest
38+
environment:
39+
name: pypi
40+
url: https://pypi.org/p/mapmanagercore # Replace <package-name> with your PyPI project name
41+
permissions:
42+
id-token: write # IMPORTANT: mandatory for trusted publishing
43+
44+
steps:
45+
- name: Download all the dists
46+
uses: actions/download-artifact@v3
47+
with:
48+
name: python-package-distributions
49+
path: dist/
50+
- name: Publish distribution 📦 to PyPI
51+
uses: pypa/gh-action-pypi-publish@release/v1
52+
53+
github-release:
54+
name: >-
55+
Sign the Python 🐍 distribution 📦 with Sigstore
56+
and upload them to GitHub Release
57+
needs:
58+
- publish-to-pypi
59+
runs-on: ubuntu-latest
60+
61+
permissions:
62+
contents: write # IMPORTANT: mandatory for making GitHub Releases
63+
id-token: write # IMPORTANT: mandatory for sigstore
64+
65+
steps:
66+
- name: Download all the dists
67+
uses: actions/download-artifact@v3
68+
with:
69+
name: python-package-distributions
70+
path: dist/
71+
- name: Sign the dists with Sigstore
72+
uses: sigstore/gh-action-sigstore-python@v2.1.1
73+
with:
74+
inputs: >-
75+
./dist/*.tar.gz
76+
./dist/*.whl
77+
- name: Create GitHub Release
78+
env:
79+
GITHUB_TOKEN: ${{ github.token }}
80+
run: >-
81+
gh release create
82+
'${{ github.ref_name }}'
83+
--repo '${{ github.repository }}'
84+
--notes ""
85+
- name: Upload artifact signatures to GitHub Release
86+
env:
87+
GITHUB_TOKEN: ${{ github.token }}
88+
# Upload to GitHub Release using the `gh` CLI.
89+
# `dist/` contains the built packages, and the
90+
# sigstore-produced signatures and certificates.
91+
run: >-
92+
gh release upload
93+
'${{ github.ref_name }}' dist/**
94+
--repo '${{ github.repository }}'

.github/workflows/release.yml

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

data/rr30a_s0u/t0/rr30a_s0_ch1.tif

-73.4 MB
Binary file not shown.

data/rr30a_s0u/t0/rr30a_s0_ch2.tif

-66.1 MB
Binary file not shown.

mapmanagercore/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
__version_tuple__: VERSION_TUPLE
1313
version_tuple: VERSION_TUPLE
1414

15-
__version__ = version = '0.0.post114'
15+
__version__ = version = '0.0.post118'
1616
__version_tuple__ = version_tuple = (0, 0)

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5-
#[project]
6-
# version = "0.0.1" # Remove any existing version parameter.
7-
#dynamic = ["version"]
8-
95
[tool.setuptools_scm]
106
write_to = "mapmanagercore/_version.py"
117
version_scheme = "post-release"

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,14 @@
5959
'Programming Language :: Python :: 3',
6060
'Natural Language :: English',
6161
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
62-
'Operating System :: Linux',
62+
'Operating System :: POSIX :: Linux',
6363
'Operating System :: MacOS',
6464
'Operating System :: Microsoft :: Windows',
6565
'Intended Audience :: Developers',
6666
'Intended Audience :: Science/Research',
6767
'Intended Audience :: End Users/Desktop',
6868
'Topic :: Scientific/Engineering :: Bio-Informatics',
6969
'Topic :: Scientific/Engineering :: Information Analysis',
70-
'Topic :: Scientific/Engineering :: Research Science Apps.',
7170
'Topic :: Scientific/Engineering :: Visualization',
7271
'Topic :: Software Development :: Libraries :: Python Modules',
7372
'Topic :: Software Development :: Libraries :: Application Frameworks',

0 commit comments

Comments
 (0)