Skip to content

Commit

Permalink
chore: add PyPI badges and GitHub Actions
Browse files Browse the repository at this point in the history
- Add PyPI version, downloads, and Python version badges to README

- Set up GitHub Actions workflow for automated PyPI publishing

- Add CHANGELOG.md following Keep a Changelog format

- Update .gitignore with comprehensive Python patterns
  • Loading branch information
mikewcasale committed Dec 14, 2024
1 parent 4e3862d commit c2626c0
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to PyPI

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build

- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m twine upload dist/*
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,38 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
STYLEGUIDE.md

# Environment variables
.env

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# IDE
.idea/
.vscode/
*.swp
*.swo

# OS
.DS_Store
Thumbs.db
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.0] - 2024-12-14

### Added
- Initial release of repominify
- Core functionality for processing Repomix output
- Graph-based code structure analysis
- Multiple output formats (GraphML, JSON, YAML, Text)
- Automatic dependency management for Node.js and npm
- Size optimization with comparison statistics
- Security pattern detection
- Comprehensive logging and debug support
- Command-line interface and Python API
- End-to-end test suite
- GitHub Actions for automated PyPI publishing

### Changed
- Renamed package from repo-minify to repominify
- Restructured project to use src/ directory layout
- Updated package metadata and documentation

[0.1.0]: https://github.com/mikewcasale/repominify/releases/tag/v0.1.0
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ A Python package that optimizes codebase representations for Large Language Mode

[![PyPI version](https://badge.fury.io/py/repominify.svg)](https://badge.fury.io/py/repominify)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI Downloads](https://img.shields.io/pypi/dm/repominify)](https://pypi.org/project/repominify/)
[![Python Versions](https://img.shields.io/pypi/pyversions/repominify)](https://pypi.org/project/repominify/)

## Overview

Expand Down

0 comments on commit c2626c0

Please sign in to comment.