Skip to content

Commit

Permalink
Merge pull request #1 from umuttopalak/feature/pypi
Browse files Browse the repository at this point in the history
chore: Update README and setup for package renaming; add GitHub Actions workflow for PyPI publishing
  • Loading branch information
umuttopalak authored Jan 8, 2025
2 parents 3aaa889 + 99b4ac8 commit 47150f5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish to PyPI

on:
push:
tags:
- 'v*'

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
- name: Build package
run: python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# pass-cli

[![Tests](https://github.com/umuttopalak/pass-cli/actions/workflows/test.yml/badge.svg)](https://github.com/umuttopalak/pass-cli/actions/workflows/test.yml)
[![PyPI version](https://badge.fury.io/py/password-cli.svg)](https://badge.fury.io/py/password-cli)
[![Python versions](https://img.shields.io/pypi/pyversions/password-cli.svg)](https://pypi.org/project/password-cli/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A secure command-line password manager with sudo authentication.

## Features
Expand All @@ -14,7 +19,7 @@ A secure command-line password manager with sudo authentication.
## Installation

```bash
pip install pass-cli
pip install password-cli
```

## Quick Start
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def read_requirements(filename):
long_description = fh.read()

# Project metadata
PROJECT_NAME = "pass-cli"
PROJECT_NAME = "password-cli"
VERSION = "0.1.0"
AUTHOR = "Umut Topalak"
AUTHOR_EMAIL = "umuttopalak@hotmail.com"
Expand Down

0 comments on commit 47150f5

Please sign in to comment.