Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -U build
- name: Build package
run: |
python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"

[project]
name = "django-wrapwith"
version = "0.0.2"
description = "A Django template tag for wrapping a template block in a reusable enclosing template"
readme = "README.md"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
authors = [
{ name = "Jamie Matthews", email = "jamie@dabapps.com" },
]
requires-python = ">=3.10"
classifiers = [
"Topic :: Internet :: WWW/HTTP",
"Environment :: Web Environment",
"Programming Language :: Python :: 3",
"Framework :: Django",
"Operating System :: OS Independent",
]

[project.urls]
Homepage = "https://github.com/dabapps/django-wrapwith"

[tool.setuptools.packages.find]
include = ["wrapwith*"]
26 changes: 0 additions & 26 deletions setup.py

This file was deleted.