Skip to content

Commit 0106c04

Browse files
committed
ci: set up uv to build
The motivation here is that whatever Poetry is doing to resolve dependencies is finding a dead docutils. I gave up on the tool, because I couldn't find a way to get the graph and find the source of the missing version. So, here we go.
1 parent 92add63 commit 0106c04

File tree

2 files changed

+648
-45
lines changed

2 files changed

+648
-45
lines changed

pyproject.toml

+50-45
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
1-
[tool.poetry]
1+
[tool.autopub]
2+
project-name = "Web Assets"
3+
git-username = "botpub"
4+
git-email = "[email protected]"
5+
append-github-contributor = true
6+
7+
[tool.isort]
8+
# Maintain compatibility with Black
9+
profile = "black"
10+
multi_line_output = 3
11+
12+
# Sort imports within their section independent of the import type
13+
force_sort_within_sections = true
14+
15+
# Designate "pelican" as separate import section
16+
known_pelican = "pelican"
17+
sections = "FUTURE,STDLIB,THIRDPARTY,PELICAN,FIRSTPARTY,LOCALFOLDER"
18+
19+
[build-system]
20+
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=22.8.0"]
21+
build-backend = "hatchling.build"
22+
23+
[tool.hatch.build.targets.wheel]
24+
packages = ["pelican/plugins/webassets"]
25+
26+
[project]
227
name = "pelican-webassets"
328
version = "2.0.0"
429
description = "Pelican plugin to manage web assets such as CSS and JS files"
5-
authors = ["Pelican Dev Team <[email protected]>"]
30+
authors = [
31+
{ name ="Pelican Dev Team <[email protected]>" },
32+
]
633
license = "AGPL-3.0"
734
readme = "README.md"
835
keywords = ["pelican", "plugin", "webassets", "css", "js", "minimization", "compilation"]
@@ -11,6 +38,7 @@ documentation = "https://docs.getpelican.com"
1138
packages = [
1239
{ include = "pelican" },
1340
]
41+
requires-python = "~= 3.7"
1442

1543
classifiers = [
1644
"Development Status :: 5 - Production/Stable",
@@ -28,50 +56,27 @@ classifiers = [
2856
"Topic :: Software Development :: Pre-processors",
2957
"Topic :: Software Development :: User Interfaces",
3058
]
59+
dependencies = [
60+
"pelican >=4.5",
61+
]
3162

32-
[tool.poetry.urls]
63+
[project.urls]
3364
"Funding" = "https://donate.getpelican.com/"
3465
"Issue Tracker" = "https://github.com/pelican-plugins/webassets/issues"
3566

36-
[tool.poetry.dependencies]
37-
python = ">=3.7,<4.0"
38-
pelican = ">=4.5"
39-
markdown = {version = ">=3.2", optional = true}
40-
41-
[tool.poetry.group.dev.dependencies]
42-
cssmin = "^0.2.0"
43-
libsass = {version = ">=0.22.0", optional = true}
44-
black = "^23"
45-
flake8 = "^3.9"
46-
flake8-black = "^0.3"
47-
invoke = "^2.1"
48-
isort = "^5.11.5"
49-
markdown = "^3.4"
50-
pytest = "^6.0"
51-
pytest-cov = "^3.0"
52-
pytest-sugar = "^0.9.7"
53-
54-
[tool.poetry.extras]
55-
markdown = ["markdown"]
56-
57-
[tool.autopub]
58-
project-name = "Web Assets"
59-
git-username = "botpub"
60-
git-email = "[email protected]"
61-
append-github-contributor = true
62-
63-
[tool.isort]
64-
# Maintain compatibility with Black
65-
profile = "black"
66-
multi_line_output = 3
67-
68-
# Sort imports within their section independent of the import type
69-
force_sort_within_sections = true
70-
71-
# Designate "pelican" as separate import section
72-
known_pelican = "pelican"
73-
sections = "FUTURE,STDLIB,THIRDPARTY,PELICAN,FIRSTPARTY,LOCALFOLDER"
74-
75-
[build-system]
76-
requires = ["poetry-core>=1.0.0"]
77-
build-backend = "poetry.core.masonry.api"
67+
[project.optional-dependencies]
68+
dev = [
69+
"cssmin == 0.2.0",
70+
"libsass",
71+
"black == 23.3.0",
72+
"flake8 == 3.9.2",
73+
"flake8-black == 0.3.6",
74+
"invoke == 2.2.0",
75+
"isort == 5.11.5",
76+
"markdown == 3.4.4",
77+
"pytest == 6.2.5",
78+
"pytest-cov == 3.0.0",
79+
"pytest-sugar == 0.9.7",]
80+
markdown = [
81+
"markdown == 3.4.4",
82+
]

0 commit comments

Comments
 (0)