Skip to content

Commit

Permalink
Created PyPi deploy action (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillJRoper authored May 25, 2024
2 parents 4cc4038 + 0ccddcc commit 4a1d91a
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Python Package

on:
push:
tags:
- 'v*.*.*' # Matches version tags like v1.0.0, v2.1.3, etc.

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v3

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build setuptools-scm
- name: Build the package
run: python -m build

- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install twine
twine upload dist/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WAND is a Python CLI tool for creating a large number of directories from a sing
To install WAND simply run

``` sh
pip install .
pip install dir-wand
```

in the root directory of WAND. This will install the `dir-wand` CLI.
Expand Down
29 changes: 26 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,41 @@ name = "dir-wand"
# Dynamic version numbers from git
dynamic = ["version"]

description = "A CLI tool that automates the creation of directory structures from templates and populates placeholder variables."

description = "A CLI tool for making many directories from a template automagically."
authors = [
{ name = "Will Roper", email = "[email protected]" }
]
readme = "README.md"
license = { file = "LICENSE" }

# Minimum Python version
requires-python = ">=3.8"

license = { text = "GNU" }
# No dependencies to run
dependencies = []

classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Topic :: Software Development :: Build Tools",
"Topic :: Utilities"
]

[project.urls]
"Homepage" = "https://github.com/WillJRoper/dir-wand"
"Source" = "https://github.com/WillJRoper/dir-wand"
"Tracker" = "https://github.com/WillJRoper/dir-wand/issues"

# Optional dependencies for specific use cases
[project.optional-dependencies]
# Development
Expand Down

0 comments on commit 4a1d91a

Please sign in to comment.