Skip to content

Commit eb56ba7

Browse files
authored
Merge pull request #30 from Imageomics/pypi-wf
Set up PyPI workflow
2 parents a4a94f3 + 1128d1a commit eb56ba7

File tree

6 files changed

+56
-10
lines changed

6 files changed

+56
-10
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Python 🐍 distribution 📦 to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-n-publish:
9+
name: Build and publish Python 🐍 distribution 📦 to PyPI
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.x"
17+
- name: Install pypa/build
18+
run: >-
19+
python3 -m
20+
pip install
21+
build
22+
--user
23+
- name: Build a binary wheel and a source tarball
24+
run: >-
25+
python3 -m
26+
build
27+
--sdist
28+
--wheel
29+
--outdir dist/
30+
.
31+
- name: Publish distribution 📦 to PyPI
32+
if: startsWith(github.ref, 'refs/tags')
33+
uses: pypa/gh-action-pypi-publish@release/v1
34+
with:
35+
password: ${{ secrets.PYPI_API_TOKEN }}

CITATION.cff

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ authors:
2323
affiliation: Imageomics Institute
2424
orcid: 'https://orcid.org/0000-0003-0846-2413'
2525
repository-code: 'https://github.com/Imageomics/distributed-downloader'
26+
identifiers:
27+
- description: "The GitHub release URL of tag v0.2.0-beta."
28+
type: url
29+
value: "https://github.com/Imageomics/distributed-downloader/releases/tag/v0.2.0-beta"
30+
- description: "The GitHub URL of the commit tagged with v0.2.0-beta."
31+
type: url
32+
value: "https://github.com/Imageomics/distributed-downloader/tree/<commit-hash>" # update post release
2633
abstract: >-
2734
MPI-based distributed downloading tool for retrieving data
2835
from diverse domains.
@@ -34,6 +41,5 @@ keywords:
3441
- "dataset generation"
3542
- "MPI application"
3643
license: MIT
37-
commit: a38107246515493df93cd61e6612dd7933814b6d
38-
version: 0.0.1
39-
date-released: '2025-02-27'
44+
version: 0.2.0-beta
45+
date-released: '2025-04-17'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ in [issue #1](https://github.com/Imageomics/distributed-downloader/issues/1)).
2424
2525
### Pip installation
2626
27-
1. Install Python 3.10 or higher
27+
1. Install Python 3.10 or 3.11
2828
2. Install MPI, any MPI should work, tested with OpenMPI and IntelMPI. Installation instructions can be found on
2929
official websites:
3030
- [OpenMPI](https://docs.open-mpi.org/en/v5.0.x/installing-open-mpi/quickstart.html)
3131
- [IntelMPI](https://www.intel.com/content/www/us/en/docs/mpi-library/developer-guide-linux/2021-6/installation.html)
3232
3. Install the required package:
3333
- For general use:
3434
```commandline
35-
pip install git+https://github.com/Imageomics/distributed-downloader
35+
pip install distributed-downloader
3636
```
3737
- For development:
3838
```commandline

environment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- python>=3.10 <=3.12
6+
- python>=3.10 <3.12
77
- attrs
88
- brotli
99
- cramjam
@@ -34,4 +34,4 @@ dependencies:
3434
- wheel
3535
# Development dependencies
3636
- pytest
37-
- ruff
37+
- ruff

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ authors = [
1313
{ name = "Elizabeth G. Campolongo", email = "[email protected]" },
1414
{ name = "Matthew J. Thompson", email = "[email protected]" },
1515
]
16-
description = "A tool for downloading files from a list of URLs in parallel."
16+
description = "MPI-based tool for downloading images from a list of URLs in parallel."
1717
readme = "README.md"
18-
requires-python = ">=3.10, <=3.12"
18+
requires-python = ">=3.10, <3.12"
1919
classifiers = [
20+
Development Status :: 4 - Beta",
2021
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
2124
"License :: OSI Approved :: MIT License",
2225
"Operating System :: OS Independent",
2326
]
@@ -62,6 +65,8 @@ keywords = [
6265
"distributed",
6366
"download",
6467
"url",
68+
"mpi-applications",
69+
"dataset-generation",
6570
]
6671

6772
[project.urls]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.0-alpha"
1+
__version__ = "0.2.0-beta"

0 commit comments

Comments
 (0)