Skip to content

Commit

Permalink
ci: set up uv to build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
offbyone committed Oct 31, 2024
1 parent 92add63 commit 3e1c4b3
Show file tree
Hide file tree
Showing 2 changed files with 783 additions and 45 deletions.
95 changes: 50 additions & 45 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,35 @@
[tool.poetry]
[tool.autopub]
project-name = "Web Assets"
git-username = "botpub"
git-email = "[email protected]"
append-github-contributor = true

[tool.isort]
# Maintain compatibility with Black
profile = "black"
multi_line_output = 3

# Sort imports within their section independent of the import type
force_sort_within_sections = true

# Designate "pelican" as separate import section
known_pelican = "pelican"
sections = "FUTURE,STDLIB,THIRDPARTY,PELICAN,FIRSTPARTY,LOCALFOLDER"

[build-system]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=22.8.0"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["pelican/plugins/webassets"]

[project]
name = "pelican-webassets"
version = "2.0.0"
description = "Pelican plugin to manage web assets such as CSS and JS files"
authors = ["Pelican Dev Team <[email protected]>"]
authors = [
{ name ="Pelican Dev Team <[email protected]>" },
]
license = "AGPL-3.0"
readme = "README.md"
keywords = ["pelican", "plugin", "webassets", "css", "js", "minimization", "compilation"]
Expand All @@ -11,6 +38,7 @@ documentation = "https://docs.getpelican.com"
packages = [
{ include = "pelican" },
]
requires-python = "~= 3.7"

classifiers = [
"Development Status :: 5 - Production/Stable",
Expand All @@ -28,50 +56,27 @@ classifiers = [
"Topic :: Software Development :: Pre-processors",
"Topic :: Software Development :: User Interfaces",
]
dependencies = [
"pelican >=4.5",
]

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

[tool.poetry.dependencies]
python = ">=3.7,<4.0"
pelican = ">=4.5"
markdown = {version = ">=3.2", optional = true}

[tool.poetry.group.dev.dependencies]
cssmin = "^0.2.0"
libsass = {version = ">=0.22.0", optional = true}
black = "^23"
flake8 = "^3.9"
flake8-black = "^0.3"
invoke = "^2.1"
isort = "^5.11.5"
markdown = "^3.4"
pytest = "^6.0"
pytest-cov = "^3.0"
pytest-sugar = "^0.9.7"

[tool.poetry.extras]
markdown = ["markdown"]

[tool.autopub]
project-name = "Web Assets"
git-username = "botpub"
git-email = "[email protected]"
append-github-contributor = true

[tool.isort]
# Maintain compatibility with Black
profile = "black"
multi_line_output = 3

# Sort imports within their section independent of the import type
force_sort_within_sections = true

# Designate "pelican" as separate import section
known_pelican = "pelican"
sections = "FUTURE,STDLIB,THIRDPARTY,PELICAN,FIRSTPARTY,LOCALFOLDER"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[project.optional-dependencies]
dev = [
"cssmin == 0.2.0",
"libsass",
"black == 23.3.0",
"flake8 == 3.9.2",
"flake8-black == 0.3.6",
"invoke == 2.2.0",
"isort == 5.11.5",
"markdown == 3.4.4",
"pytest == 6.2.5",
"pytest-cov == 3.0.0",
"pytest-sugar == 0.9.7",]
markdown = [
"markdown == 3.4.4",
]
Loading

0 comments on commit 3e1c4b3

Please sign in to comment.