Metadata-Version: 2.3
Name: latest_tag
Version: 1.0.4
Summary: Tag fetcher for GitHub releases with optional asset filtering
License: MIT
Keywords: github,releases,cli,automation,tags
Author: Munywele Sammy Barasa
Author-email: sammy@munywele.co.ke
Requires-Python: >=3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: loguru (>=0.7.2,<1.0.0)
Requires-Dist: pygithub (>=2.6.1,<3.0.0)
Requires-Dist: python-dotenv (>=1.1.1,<2.0.0)
Requires-Dist: requests (>=2.32.4,<3.0.0)
Requires-Dist: typer (>=0.16.0,<0.17.0)
Description-Content-Type: text/markdown

# GitHub Release Tag Fetcher

A lightweight Python utility to fetch the **latest GitHub release tag** from a repository, with optional filtering to **exclude releases that contain specific file types** (e.g., `.apk`, `.aab`).  
Ideal for deployment pipelines or automation scripts where only clean releases are required.

---

## ✅ Features

- Fetch the latest release from any GitHub repository.
- Skip releases that include disallowed asset types.
- Write the valid release tag to a file.
- Configurable via environment variables.
- Clean logging with [loguru](https://github.com/Delgan/loguru).

---

## 🧱 Project Setup (Poetry)

### 1. Clone the Repository

```bash
  git clone https://github.com/your-org/your-repo.git
```
```bash
  cd your-repo
```

### 2. Activate the Virtual Environment

```bash
  poetry shell
```

### 3. Install Dependencies
```bash
  poetry install
```


### 4. Run
```bash
  poetry run fetch-tag
```


