Skip to content

Commit

Permalink
Use flit for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Sep 13, 2022
1 parent d601440 commit da1aa49
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 59 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- pip-{{ .Branch }}-
- pip-main-

- run: pip install -e .[testing]
- run: pip install flit
- run: flit install --deps production --extras testing

- type: cache-save
key: pip-{{ .Branch }}-{{ epoch }}
Expand All @@ -36,7 +37,8 @@ jobs:
- checkout
- run: git clone git@github.com:wagtail/wagtail.git

- run: pip install -e .[testing]
- run: pip install flit
- run: flit install --deps production --extras testing
- run: pip install ./wagtail

- run: python testmanage.py test
Expand Down
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

2 changes: 0 additions & 2 deletions .prettierrc.toml

This file was deleted.

56 changes: 56 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "wagtail-editable-help"
authors = [{name = "Matt Westcott", email = "matthew@torchbox.com"}]
description = "Make help text editable in the Wagtail admin"
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Wagtail",
"Framework :: Wagtail :: 2",
"Framework :: Wagtail :: 3",
"Framework :: Wagtail :: 4"
]
dynamic = ["version"]
requires-python = ">=3.7"
dependencies = [
"Django>=3.0,<4.2",
"wagtail>=2.15,<5",
"telepath>=0.3,<1"
]

[project.optional-dependencies]
testing = [
"dj-database-url==0.5.0",
"freezegun==0.3.15"
]

[project.urls]
Source = "https://github.com/wagtail/wagtail-editable-help"
Documentation = "https://github.com/wagtail/wagtail-editable-help#readme"

[tool.flit.module]
name = "wagtail_editable_help"

[tool.flit.sdist]
exclude = [
"wagtail_editable_help/test",
"testmanage.py",
]
54 changes: 0 additions & 54 deletions setup.py

This file was deleted.

0 comments on commit da1aa49

Please sign in to comment.