Skip to content

Commit f3dff15

Browse files
committed
fix: include LICENSE in package for PyPI
1 parent 11f0583 commit f3dff15

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.github/workflows/pypi-release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
#
44
# maturin generate-ci github --manifest-path crates/django-check/Cargo.toml
55
#
6-
name: CI
6+
name: PyPI-Release
77

88
on:
99
push:
10-
branches:
11-
- main
12-
tags:
13-
- '*'
14-
pull_request:
10+
tags: ['v*']
1511
workflow_dispatch:
1612

1713
permissions:

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/django-check/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "django-check"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
rust-version = { workspace = true }
55
license = { workspace = true }
66
authors = { workspace = true }

crates/django-check/pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ build-backend = "maturin"
44

55
[project]
66
name = "djch"
7-
version = "0.1.5"
7+
version = "0.1.6"
88
description = "Static N+1 query detector for Django ORM – fast Rust-powered checker"
99
# For PyPI long description (shows formatted on project page)
1010
readme = {file = "README.md", content-type = "text/markdown"}
1111
requires-python = ">=3.8"
1212
license = {text = "MIT"}
13+
license-files = ["LICENSE"]
1314
authors = [
1415
{name = "Richard", email = "richard.penab@gmail.com"},
1516
]
@@ -42,4 +43,8 @@ Issues = "https://github.com/richardhapb/django-check/issues"
4243
Changelog = "https://github.com/richardhapb/django-check/releases"
4344

4445
[tool.maturin]
45-
bindings = "bin"
46+
bindings = "bin"
47+
include = [
48+
{ path = "LICENSE", format = "sdist" },
49+
{ path = "LICENSE", format = "wheel" },
50+
]

0 commit comments

Comments
 (0)