Skip to content

Commit 49e0791

Browse files
chore: Prepare release 4.1.0 (#60)
* Add pypi actions * bump version * feat: CSP support * Update test requirements * Update djangocms_attributes_field/widgets.py Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> * Update test requirements * Bump version * Add media property * Fix linitng * Add tests * fix: Build process * Add pypi actions * fix: tests action * fix pyproject.toml * update test action * Prepare for branch renaming --------- Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 41d95f8 commit 49e0791

File tree

4 files changed

+64
-60
lines changed

4 files changed

+64
-60
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CodeCov
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
48

59
jobs:
610
unit-tests:
@@ -38,7 +42,7 @@ jobs:
3842
run: |
3943
python -m pip install --upgrade pip
4044
pip install -r tests/requirements/${{ matrix.requirements-file }}
41-
python setup.py install
45+
pip install -e .
4246
4347
- name: Run coverage
4448
run: coverage run tests/settings.py

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changelog
66
==================
77

88
* Add CSP support (load JS and CSS from static files if installed in INSTALLED_APPS)
9+
* fix: Remove test files from wheel
910

1011
4.0.0 (2024-11-19)
1112
==================

pyproject.toml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
[project]
2+
name = "djangocms-attributes-field"
3+
version = "4.1.0"
4+
description = "Adds attributes to Django models."
5+
authors = [
6+
{name = "Divio AG", email = "[email protected]"},
7+
]
8+
maintainers = [
9+
{name = "Django CMS Association and contributors", email = "[email protected]"},
10+
]
11+
license = {text = "BSD-3-Clause"}
12+
readme = "README.rst"
13+
requires-python = ">=3.9"
14+
dependencies = [
15+
"django-cms>=3.7",
16+
]
17+
classifiers = [
18+
"Development Status :: 5 - Production/Stable",
19+
"Environment :: Web Environment",
20+
"Intended Audience :: Developers",
21+
"License :: OSI Approved :: BSD License",
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
30+
"Framework :: Django",
31+
"Framework :: Django :: 4.2",
32+
"Framework :: Django :: 5.0",
33+
"Framework :: Django :: 5.1",
34+
"Framework :: Django :: 5.2",
35+
"Framework :: Django CMS",
36+
"Framework :: Django CMS :: 3.11",
37+
"Framework :: Django CMS :: 4.1",
38+
"Framework :: Django CMS :: 5.0",
39+
"Topic :: Internet :: WWW/HTTP",
40+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
41+
"Topic :: Software Development",
42+
"Topic :: Software Development :: Libraries",
43+
]
44+
45+
[project.urls]
46+
Homepage = "https://github.com/django-cms/djangocms-attributes-field/"
47+
Repository = "https://github.com/django-cms/djangocms-attributes-field/"
48+
49+
[build-system]
50+
requires = ["setuptools>=45", "wheel"]
51+
build-backend = "setuptools.build_meta"
52+
[tool.setuptools.packages.find]
53+
include = ["djangocms_attributes_field*"]
54+
55+
[tool.setuptools.package-data]
56+
"*" = ["*"]
57+
158
[tool.black]
259
exclude = [
360
".git",

setup.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)