Skip to content

Commit f195652

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 f195652

File tree

2 files changed

+647
-45
lines changed

2 files changed

+647
-45
lines changed

pyproject.toml

+49-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"]
@@ -28,50 +55,27 @@ classifiers = [
2855
"Topic :: Software Development :: Pre-processors",
2956
"Topic :: Software Development :: User Interfaces",
3057
]
58+
dependencies = [
59+
"pelican >=4.5",
60+
]
3161

32-
[tool.poetry.urls]
62+
[project.urls]
3363
"Funding" = "https://donate.getpelican.com/"
3464
"Issue Tracker" = "https://github.com/pelican-plugins/webassets/issues"
3565

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"
66+
[project.optional-dependencies]
67+
dev = [
68+
"cssmin == 0.2.0",
69+
"libsass",
70+
"black == 23.3.0",
71+
"flake8 == 3.9.2",
72+
"flake8-black == 0.3.6",
73+
"invoke == 2.2.0",
74+
"isort == 5.11.5",
75+
"markdown == 3.4.4",
76+
"pytest == 6.2.5",
77+
"pytest-cov == 3.0.0",
78+
"pytest-sugar == 0.9.7",]
79+
markdown = [
80+
"markdown == 3.4.4",
81+
]

0 commit comments

Comments
 (0)