Skip to content

Commit db28387

Browse files
authored
Merge pull request #12 from WildMeOrg/publish-pypi
Publish to PyPI
2 parents 52fade0 + d7d404e commit db28387

3 files changed

Lines changed: 78 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.11", "3.13"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: astral-sh/setup-uv@v5
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- run: uv sync
21+
- run: uv run ruff check
22+
- run: uv run pytest

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "[0-9]*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: astral-sh/setup-uv@v5
15+
- run: uv build
16+
- uses: actions/upload-artifact@v4
17+
with:
18+
name: dist
19+
path: dist/
20+
21+
publish:
22+
needs: build
23+
runs-on: ubuntu-latest
24+
environment: pypi
25+
permissions:
26+
id-token: write
27+
steps:
28+
- uses: actions/download-artifact@v4
29+
with:
30+
name: dist
31+
path: dist/
32+
- uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,37 @@ name = "pywildbook"
33
version = "1.0.0"
44
description = "Python client for the Wildbook v3 API"
55
readme = "README.md"
6+
license = "MIT"
67
authors = [
7-
{ name = "vkirkl", email = "georgetownpolecat@gmail.com" }
8+
{ name = "Kirk Larsen", email = "georgetownpolecat@gmail.com" },
9+
{ name = "Wild Me", email = "info@wildme.org" },
10+
]
11+
keywords = ["wildbook", "wildlife", "conservation", "api", "client"]
12+
classifiers = [
13+
"Development Status :: 5 - Production/Stable",
14+
"Intended Audience :: Science/Research",
15+
"Intended Audience :: Developers",
16+
"License :: OSI Approved :: MIT License",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3.11",
19+
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
21+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
22+
"Topic :: Scientific/Engineering :: Image Processing",
23+
"Topic :: Scientific/Engineering :: Image Recognition",
24+
"Topic :: Software Development :: Libraries :: Python Modules",
825
]
926
requires-python = ">=3.11"
1027
dependencies = [
1128
"requests>=2.31.0",
1229
]
1330

31+
[project.urls]
32+
Homepage = "https://github.com/WildMeOrg/pywildbook"
33+
Repository = "https://github.com/WildMeOrg/pywildbook"
34+
"Bug Tracker" = "https://github.com/WildMeOrg/pywildbook/issues"
35+
Documentation = "https://docs.wildme.org/"
36+
1437
[project.optional-dependencies]
1538
notebook = [
1639
"ipykernel>=6.31.0",

0 commit comments

Comments
 (0)