module = "tikzphysics"

sourcefiles = {
  "tikzphysics.sty",
  "tikzlibrarytikzphysics*.code.tex",
}
installfiles = sourcefiles

typesetfiles = {"tikzphysics.tex"}
typesetexe = "pdflatex"
typesetopts = "-interaction=nonstopmode -shell-escape"
typesetruns = 3

demofiles = {}
textfiles = {
  "README.md",
  "CHANGELOG.md",
  "LICENSE",
  "build.lua",
  "tikzphysics-help",
}
scriptfiles = {"tikzphysics-help"}
excludefiles = {"*~", "config-*.lua"}

-- Keep examples and regression fixtures in their own directories in the
-- CTAN source archive instead of flattening them into the package root.
tdsdirs = {
  ["examples"] = "examples",
  ["testfiles"] = "testfiles",
  ["docs"] = "docs",
  ["scripts"] = "scripts",
}

checkengines = {"pdftex"}
stdengine = "pdftex"
checkruns = 1

uploadconfig = {
  pkg = "tikzphysics",
  version = "1.2.0",
  author = "Vaibhav Blayer",
  uploader = "Vaibhav Blayer",
  email = "vaibhavblayer@gmail.com",
  license = "lppl1.3c",
  topic = {"graphics-in-tex", "pgf-tikz", "physics"},
  summary = "TikZ-native shapes and anchors for classical physics diagrams",
  announcement = [[
tikzphysics 1.2.0 adds reusable per-object defaults, native
to[over pulley=P] connections, wedge contact and tangent/normal anchors,
and mechanics primitives including supports, pendulums, and motion arrows.
The new show anchors, show keys, and physicshelp features provide
in-picture discovery of supported keys and anchors. A rewritten manual
includes a beginner quickstart, complete systems, and a 31-feature reference.

Migration: spring is now a path decoration, used as
\draw[spring] (A) -- (B);, instead of a spring node. Spring leads may be zero.
Blocks default to 1cm square and pulleys to 1cm diameter.
This release also fixes prism centroid and face-midpoint anchors.
  ]],
  description = [[
The tikzphysics package extends TikZ with reusable shapes, styles, keys,
and geometric anchors for classical-physics diagrams. It provides contact
surfaces, straight and circular ramps, blocks, springs, pulleys, supports,
pendulums, motion arrows, and optical mirrors, lenses, slabs, and prisms.
Features use ordinary TikZ node, path, and pic syntax with reusable default
styles. Named and parametric anchors help compose larger diagrams, while
in-picture reference cards expose supported keys and anchors.
  ]],
  ctanPath = "/graphics/pgf/contrib/tikzphysics",
  note = [[
This update improves simple default styles, native pulley connections,
wedge contact geometry, and in-picture key/anchor discovery. It adds basic
mechanics primitives and a beginner guide with generated feature references.
  ]],
  update = true,
}
