feat: publish package to pypi workflow and rename package to djinitx
This commit is contained in:
4 files changed
+55
-4
No files matched your search
@@ -31,11 +31,11 @@ jobs:
|
||||
|
||||
- name: Lint with Ruff
|
||||
run: |
|
||||
ruff check src/
|
||||
ruff check djinit/
|
||||
|
||||
- name: Check formatting with Ruff
|
||||
run: |
|
||||
ruff format --check src/
|
||||
ruff format --check djinit/
|
||||
|
||||
- name: Test CLI import
|
||||
run: |
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
name: Build and Publish to PyPI
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install build twine
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
python -m build
|
||||
|
||||
- name: Check package
|
||||
run: |
|
||||
twine check dist/*
|
||||
|
||||
- name: Publish to PyPI
|
||||
env:
|
||||
TWINE_USERNAME: __token__
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||
run: |
|
||||
twine upload dist/*
|
||||
+12
-1
@@ -1,5 +1,5 @@
|
||||
[project]
|
||||
name = "djinit"
|
||||
name = "djinitx"
|
||||
version = "0.1.0"
|
||||
description = "A CLI tool to setup Django project"
|
||||
readme = "README.md"
|
||||
@@ -8,6 +8,17 @@ authors = [
|
||||
{ name = "Sankalp Tharu", email = "sankalptharu50028@gmail.com" }
|
||||
]
|
||||
license = { text = "MIT" }
|
||||
keywords = [
|
||||
"django",
|
||||
"cli",
|
||||
"project",
|
||||
"djinit",
|
||||
"djinitx",
|
||||
"dj",
|
||||
"django-init",
|
||||
"django project",
|
||||
"django starter"
|
||||
]
|
||||
classifiers=[
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
setup(
|
||||
name="djinit",
|
||||
name="djinitx",
|
||||
version="0.1.0",
|
||||
description="A CLI tool to setup Django projects",
|
||||
long_description=open("README.md").read(),
|
||||
@@ -49,6 +49,7 @@ setup(
|
||||
"cli",
|
||||
"project",
|
||||
"djinit",
|
||||
"djinitx",
|
||||
"dj",
|
||||
"django-init",
|
||||
"django project",
|
||||
|
||||
Reference in new issue
Block a user