Skip to content

Commit

Permalink
Move to using flit >= 3.9 and separate version file
Browse files Browse the repository at this point in the history
needed because our __init__.py imports Django and we want to keep the build step as simple as possible
  • Loading branch information
zerolab committed Jan 21, 2024
1 parent 7f966fa commit 3f302a2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: ⬇️ Install build dependencies
run: |
python -m pip install flit
python -m pip install -U flit
- name: 🏗️ Build
run: python -m flit build
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# Wagtail Bynder Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1] - 2024-01-21

Initial release


[unreleased]: https://github.com/torchbox/wagtail-bynder/compare/v0.1 ...HEAD
[0.1]: https://github.com/torchbox/wagtail-bynder/compare/769e7b...v0.1
4 changes: 0 additions & 4 deletions src/wagtail_bynder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@ def get_video_model():
"BYNDER_VIDEO_MODEL refers to model '%s' that has not been installed"
% model_string
) from e


VERSION = (0, 1, 0)
__version__ = ".".join(map(str, VERSION))
1 change: 1 addition & 0 deletions src/wagtail_bynder/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.1.0"
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ setenv =
PYTHONDEVMODE = 1

deps =
flit>=3.8
flit>=3.9

django3.2: Django>=3.2,<3.3
django4.2: Django>=4.2,<4.3
Expand Down

0 comments on commit 3f302a2

Please sign in to comment.