From 7fd555fcaf4304cb0dff3e8f5661565c3618299e Mon Sep 17 00:00:00 2001 From: Murilo Ijanc Date: Sun, 26 Jul 2026 12:42:08 -0300 Subject: Initial import --- cepis-0.1.0-1.rockspec | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 cepis-0.1.0-1.rockspec (limited to 'cepis-0.1.0-1.rockspec') diff --git a/cepis-0.1.0-1.rockspec b/cepis-0.1.0-1.rockspec new file mode 100644 index 0000000..c303f96 --- /dev/null +++ b/cepis-0.1.0-1.rockspec @@ -0,0 +1,46 @@ +rockspec_format = "3.0" +package = "cepis" +version = "0.1.0-1" + +source = { + url = "git+https://git.cep.is/lua.git", + tag = "v0.1.0", +} + +description = { + summary = "Lua client for the public CEP API at cep.is", + detailed = [[ + Looks a Brazilian CEP up against https://cep.is, which serves the official + Correios database (DNE) refreshed every two weeks, with coordinates for + about 57% of them. Single lookups, batches of up to 500 per request, and a + health endpoint. Retries 429 and 5xx with exponential backoff and full + jitter; never retries 400 or 404. + ]], + homepage = "https://cep.is", + license = "ISC", + labels = { "cep", "correios", "dne", "endereco", "brasil", "http" }, +} + +dependencies = { + "lua >= 5.1", + "luasocket >= 3.0", + "luasec >= 1.0", + "dkjson >= 2.5", +} + +build = { + type = "builtin", + modules = { + ["cepis"] = "cepis.lua", + ["cepis.client"] = "cepis/client.lua", + ["cepis.csv"] = "cepis/csv.lua", + ["cepis.errors"] = "cepis/errors.lua", + ["cepis.models"] = "cepis/models.lua", + }, + copy_directories = {}, +} + +test = { + type = "command", + command = "lua test/run.lua", +} -- cgit v1.3