Skip to content

Commit 40cee87

Browse files
authored
Merge pull request #746 from drnlm/feature/switch_away_from_seup.py
Feature/switch away from setup.py
2 parents 5b4c2cc + c9778a4 commit 40cee87

File tree

7 files changed

+94
-85
lines changed

7 files changed

+94
-85
lines changed

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Copyright (c) 2012-2020 Unomena (http://unomena.com/) and other contributors.
1+
Copyright (c) 2012 Unomena (http://unomena.com/) and other contributors.
2+
Copyright (c) 2013-2025 Cape Town Python Users Group (CTPUG - https://www.ctpug.org.za) and other contributors
23

34
Permission to use, copy, modify, and/or distribute this software for any
45
purpose with or without fee is hereby granted, provided that the above

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include package.json
2+
include manage.py

pyproject.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[project]
2+
name = "wafer"
3+
dynamic = ["version", "dependencies", "optional-dependencies"]
4+
5+
authors = [
6+
{name = "CTPUG", email = "[email protected]" },
7+
]
8+
9+
description = "A wafer-thin Django library for running small conferences."
10+
readme = "README.rst"
11+
12+
license = "ISC"
13+
license-files = ["LICENSE",]
14+
15+
classifiers = [
16+
"Development Status :: 4 - Beta",
17+
"Intended Audience :: Developers",
18+
"Operating System :: POSIX",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
24+
"Framework :: Django",
25+
"Topic :: Software Development :: Libraries :: Python Modules",
26+
"Topic :: Internet :: WWW/HTTP",
27+
]
28+
29+
[project.urls]
30+
Repository = "https://github.com/CTPUG/wafer"
31+
Documentation = "https://wafer.readthedocs.io"
32+
Issues = "https://github.com/CTPUG/wafer/issues"
33+
34+
35+
[build-system]
36+
requires = ["setuptools >= 77.0.3"]
37+
build-backend = "setuptools.build_meta"
38+
39+
[tool.setuptools.packages]
40+
find = {}
41+
42+
[tool.setuptools.package-data]
43+
"*" = ["*.rst", "*po", "*mo", "*css", "*png", "*js"]
44+
45+
[tool.setuptools.exclude-package-data]
46+
"*" = ["utils"]
47+
48+
[tool.setuptools.dynamic]
49+
version = {attr = "wafer.__version__"}
50+
dependencies = { file = ["requirements.txt"] }
51+
optional-dependencies = { dev = { file = ["requirements-dev.txt"] } }

requirements.txt

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1-
# Our dependencies are all specified in setup.py.
2-
3-
-e .
1+
Django>=4.2,<6
2+
bleach
3+
bleach-allowlist
4+
crispy-bootstrap5
5+
diff-match-patch
6+
django-bakery>=0.13.0
7+
django-crispy-forms
8+
django-markitup>=4.0.0
9+
django-registration-redux
10+
django-reversion
11+
django-select2
12+
djangorestframework
13+
drf-extensions>=0.5.0
14+
icalendar>=6.0
15+
jsonfield
16+
markdown>=2.5
17+
pillow
18+
py3dns
19+
pyLibravatar
20+
pytz
21+
requests

setup.py

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

utils/build_release.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
#
3+
# This ensures we run compile messages before we build the wheel
4+
5+
if [ ! -e ./manage.py ]; then
6+
echo "Please run this script in the base directory of the repository"
7+
exit 1
8+
fi
9+
10+
# setuptools uses this to cache lookups for faster repeated builds, but that
11+
# also leads to some unexpected results, so we ensure we're starting from a
12+
# clean state
13+
rm -rf wafer.egg-info
14+
# Compile messages
15+
./manage.py compilemessages
16+
# Build the release files
17+
python -m build
18+

utils/bump-version.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function inplace_sed {
1818
rm "$2$suffix"
1919
}
2020

21-
inplace_sed "s/\(version[ ]*=[ ]*[\"']\)\(.*\)\([\"'].*\)/\1${VER}\3/" setup.py
2221
inplace_sed "s/^\(__version__[ ]*=[ ]*[\"']\)\(.*\)\([\"'].*\)/\1${VER}\3/" wafer/__init__.py
2322
inplace_sed "s/^\(release[ ]*=[ ]*[\"']\)\(.*\)\([\"'].*\)/\1${VER}\3/" docs/conf.py
2423
inplace_sed "s/^\(version[ ]*=[ ]*[\"']\)\(.*\)\([\"'].*\)/\1${SHORT_VER}\3/" docs/conf.py

0 commit comments

Comments
 (0)