Skip to content

Commit

Permalink
publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisclark committed Jun 4, 2024
1 parent 34dbaad commit bc4aec9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 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: Upload Python Package to PyPI when a Release is Created

on:
release:
types: [created]

jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/django-cryptography-django5
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
name = django-cryptography
name = django-cryptography-django5
version = attr: django_cryptography.__version__
url = https://github.com/chrisclark/django-cryptography
author = George Marshall
Expand Down Expand Up @@ -31,11 +31,11 @@ classifiers =
Topic :: Security :: Cryptography
project_urls =
Bug Reports = https://github.com/georgemarshall/django-cryptography/issues
Source = https://github.com/georgemarshall/django-cryptography
Source = https://github.com/chrisclark/django-cryptography
Documentation = https://django-cryptography.readthedocs.io

[options]
packages = django_cryptography
packages = django_cryptography_django5
python_requires = >=3.8
include_package_data = True
install_requires =
Expand Down

0 comments on commit bc4aec9

Please sign in to comment.