CensusForge 1.2.0__tar.gz → 1.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. censusforge-1.2.0/.forgejo/workflows/publish.yaml → censusforge-1.2.2/.forgejo/workflows/publish-pip.yaml +7 -3
  2. {censusforge-1.2.0 → censusforge-1.2.2}/.gitignore +5 -0
  3. censusforge-1.2.2/CHANGELOG.md +6 -0
  4. {censusforge-1.2.0 → censusforge-1.2.2}/PKG-INFO +1 -1
  5. censusforge-1.2.2/devenv/default.nix +10 -0
  6. censusforge-1.2.2/devenv/languages.nix +12 -0
  7. censusforge-1.2.2/devenv/pre-commit.nix +29 -0
  8. censusforge-1.2.2/devenv/scripts.nix +10 -0
  9. {censusforge-1.2.0 → censusforge-1.2.2}/devenv.lock +12 -34
  10. censusforge-1.2.2/devenv.nix +79 -0
  11. {censusforge-1.2.0 → censusforge-1.2.2}/devenv.yaml +1 -2
  12. {censusforge-1.2.0 → censusforge-1.2.2}/main.py +2 -1
  13. {censusforge-1.2.0 → censusforge-1.2.2}/pyproject.toml +1 -1
  14. censusforge-1.2.2/requirements.txt +1558 -0
  15. censusforge-1.2.2/scripts/prod-build.sh +42 -0
  16. censusforge-1.2.2/scripts/release.sh +100 -0
  17. censusforge-1.2.2/uv.lock +2529 -0
  18. censusforge-1.2.0/CHANGELOG.md +0 -1
  19. censusforge-1.2.0/devenv.nix +0 -186
  20. censusforge-1.2.0/notebooks/.gitkeep +0 -0
  21. censusforge-1.2.0/requirements.txt +0 -1527
  22. censusforge-1.2.0/uv.lock +0 -2492
  23. {censusforge-1.2.0 → censusforge-1.2.2}/LICENSE +0 -0
  24. {censusforge-1.2.0 → censusforge-1.2.2}/README.md +0 -0
  25. {censusforge-1.2.0 → censusforge-1.2.2}/data/external/.gitkeep +0 -0
  26. {censusforge-1.2.0 → censusforge-1.2.2}/data/processed/.gitkeep +0 -0
  27. {censusforge-1.2.0 → censusforge-1.2.2}/data/raw/.gitkeep +0 -0
  28. {censusforge-1.2.0 → censusforge-1.2.2}/docs/.gitkeep +0 -0
  29. {censusforge-1.2.0 → censusforge-1.2.2}/notebooks/census.ipynb +0 -0
  30. {censusforge-1.2.0 → censusforge-1.2.2}/notebooks/query.ipynb +0 -0
  31. {censusforge-1.2.0 → censusforge-1.2.2}/renovate.json +0 -0
  32. {censusforge-1.2.0 → censusforge-1.2.2}/src/CensusForge/CensusForge.py +0 -0
  33. {censusforge-1.2.0 → censusforge-1.2.2}/src/CensusForge/__init__.py +0 -0
  34. {censusforge-1.2.0 → censusforge-1.2.2}/src/CensusForge/utils.py +0 -0
@@ -9,13 +9,17 @@ jobs:
9
9
  Build-And-Publish:
10
10
  runs-on: local
11
11
  steps:
12
+ - name: Install xz and Node.js
13
+ run: |
14
+ apt-get update
15
+ apt-get install -y nodejs curl xz-utils
12
16
  - name: Check out code
13
- uses: actions/checkout@v6
17
+ uses: https://github.com/actions/checkout.git@v4
14
18
 
15
19
  - name: Install uv
16
20
  # This installs the standalone uv binary
17
21
  run: curl -LsSf https://astral.sh/uv/0.11.7/install.sh | sh
18
-
22
+
19
23
  - name: Build and Publish to PyPI
20
24
  # We ensure uv is in the path for this step
21
25
  env:
@@ -23,7 +27,7 @@ jobs:
23
27
  run: |
24
28
  # 1. Build the project (creates dist/)
25
29
  uv build
26
-
30
+
27
31
  # 2. Publish to PyPI
28
32
  # uv automatically uses UV_PUBLISH_TOKEN as the password with username __token__
29
33
  uv publish
@@ -185,6 +185,11 @@ docs/aux/*
185
185
  docs/out/*
186
186
  qcew
187
187
 
188
+ # Ignore Notebook
189
+ notebooks/*
190
+ !notebooks/*.ipynb
191
+
192
+
188
193
  # Devenv
189
194
  .devenv*
190
195
  devenv.local.nix
@@ -0,0 +1,6 @@
1
+ ## [1.2.2] - 2026-07-31
2
+
3
+ ### 🚀 Features
4
+
5
+ - *(.forgejo/workflows/publish-pip.yaml)* Add CI workflow to publish uv package to PyPI and notify ntfy
6
+ ## [0.7.1] - 2026-05-13
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: CensusForge
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Add your description here
5
5
  Author-email: Alejandro Ouslan <alejandro.ouslan@upr.edu>
6
6
  License-File: LICENSE
@@ -0,0 +1,10 @@
1
+ # devenv/default.nix
2
+ { ... }:
3
+
4
+ {
5
+ imports = [
6
+ ./scripts.nix
7
+ ./pre-commit.nix
8
+ ./languages.nix
9
+ ];
10
+ }
@@ -0,0 +1,12 @@
1
+ { config, pkgs, ... }:
2
+ {
3
+ languages.python = {
4
+ enable = true;
5
+ package = pkgs.python312;
6
+ venv.enable = true;
7
+ uv = {
8
+ enable = true;
9
+ sync.enable = true;
10
+ };
11
+ };
12
+ }
@@ -0,0 +1,29 @@
1
+ { pkgs, ... }:
2
+
3
+ {
4
+ # https://devenv.sh/git-hooks/
5
+ git-hooks.hooks = {
6
+ nixfmt.enable = true;
7
+ prettier = {
8
+ enable = true;
9
+ excludes = [ "CHANGELOG\\.md" ];
10
+ };
11
+ jupyter-nb-clear-output = {
12
+ enable = true;
13
+ name = "jupyter-nb-clear-output";
14
+ package = pkgs.jupyter;
15
+ entry = "jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace";
16
+ files = "\\.ipynb$";
17
+ stages = [ "pre-commit" ];
18
+ };
19
+ uv-lock-and-requirements = {
20
+ enable = true;
21
+ name = "uv-lock-and-requirements";
22
+ package = pkgs.uv;
23
+ entry = "sh -c 'uv lock && uv export --format requirements.txt --all-extras --no-emit-workspace -o requirements.txt && git add uv.lock requirements.txt'";
24
+ files = "^pyproject\\.toml$";
25
+ stages = [ "pre-commit" ];
26
+ pass_filenames = false;
27
+ };
28
+ };
29
+ }
@@ -0,0 +1,10 @@
1
+ # devenv/scripts.nix
2
+ { ... }:
3
+
4
+ {
5
+ scripts = {
6
+ # ../ reaches out of the devenv/ folder to find the root scripts/ folder
7
+ release.exec = builtins.readFile ../scripts/release.sh;
8
+ prod-deploy.exec = builtins.readFile ../scripts/prod-build.sh;
9
+ };
10
+ }
@@ -3,11 +3,11 @@
3
3
  "devenv": {
4
4
  "locked": {
5
5
  "dir": "src/modules",
6
- "lastModified": 1781627264,
7
- "narHash": "sha256-TPj5d5MUyvuQZjsfDAAoYJ0SB+tNNNBrdCpD8XL0WeU=",
6
+ "lastModified": 1785435900,
7
+ "narHash": "sha256-t+Cm2LICKr8eDNM/ruPJBqmCpybZWRgHpgiIuMLt0ww=",
8
8
  "owner": "cachix",
9
9
  "repo": "devenv",
10
- "rev": "0fe5629a2955141c336b95e384e2c793c01214fb",
10
+ "rev": "d0ea5226b162f4611e3541cc45547d210e83ae03",
11
11
  "type": "github"
12
12
  },
13
13
  "original": {
@@ -36,17 +36,16 @@
36
36
  "git-hooks": {
37
37
  "inputs": {
38
38
  "flake-compat": "flake-compat",
39
- "gitignore": "gitignore",
40
39
  "nixpkgs": [
41
40
  "nixpkgs"
42
41
  ]
43
42
  },
44
43
  "locked": {
45
- "lastModified": 1781733627,
46
- "narHash": "sha256-U3yTuGBnmXvXoQI3qkpfEDsn9RovQPAjN7ndRco+3u0=",
44
+ "lastModified": 1784288435,
45
+ "narHash": "sha256-ReRHaLgr/uVqdD8afFSn+myXIfpHeOhP0yYe0TJqAA8=",
47
46
  "owner": "cachix",
48
47
  "repo": "git-hooks.nix",
49
- "rev": "3bbec39bc90eadfa031e6f3b77272f3f60803e39",
48
+ "rev": "43b3c1ab9d40fb1dbb008f451988a91e375825e9",
50
49
  "type": "github"
51
50
  },
52
51
  "original": {
@@ -55,37 +54,16 @@
55
54
  "type": "github"
56
55
  }
57
56
  },
58
- "gitignore": {
59
- "inputs": {
60
- "nixpkgs": [
61
- "git-hooks",
62
- "nixpkgs"
63
- ]
64
- },
65
- "locked": {
66
- "lastModified": 1709087332,
67
- "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
68
- "owner": "hercules-ci",
69
- "repo": "gitignore.nix",
70
- "rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
71
- "type": "github"
72
- },
73
- "original": {
74
- "owner": "hercules-ci",
75
- "repo": "gitignore.nix",
76
- "type": "github"
77
- }
78
- },
79
57
  "nixpkgs": {
80
58
  "inputs": {
81
59
  "nixpkgs-src": "nixpkgs-src"
82
60
  },
83
61
  "locked": {
84
- "lastModified": 1781620901,
85
- "narHash": "sha256-UF6scQlG+6lRkZBUpn/3KNavhOo5G8kDWhjVHcno8uc=",
62
+ "lastModified": 1785104946,
63
+ "narHash": "sha256-VLSslwCjlsICjyaUfrS7lGMypmO03fzmDAqhD85Ae84=",
86
64
  "owner": "cachix",
87
65
  "repo": "devenv-nixpkgs",
88
- "rev": "2df109b343d3c68efd752e32a444a1d9b9f89afa",
66
+ "rev": "c946ff36bf193309589932c371bd5ae6653c912e",
89
67
  "type": "github"
90
68
  },
91
69
  "original": {
@@ -98,11 +76,11 @@
98
76
  "nixpkgs-src": {
99
77
  "flake": false,
100
78
  "locked": {
101
- "lastModified": 1781454065,
102
- "narHash": "sha256-d2xfDjnfRuf/xYGdu9VVRHiav/2w5hDL/5cw2TuVAXw=",
79
+ "lastModified": 1784783405,
80
+ "narHash": "sha256-4IHyyLgLBdKefkljdKod4IMn023pQiDXAWJA187cmdY=",
103
81
  "owner": "NixOS",
104
82
  "repo": "nixpkgs",
105
- "rev": "9eac87a12312b8f60dd52e1c6e1a265f6fc7f5fc",
83
+ "rev": "7525d999cd850b9a488817abc89c75dc733acf17",
106
84
  "type": "github"
107
85
  },
108
86
  "original": {
@@ -0,0 +1,79 @@
1
+ {
2
+ pkgs,
3
+ lib,
4
+ config,
5
+ inputs,
6
+ ...
7
+ }:
8
+ {
9
+ # --- 1. Global Base Configuration ---
10
+ # Variables and settings that apply absolutely everywhere (Dev & Prod)
11
+ env = {
12
+ GREET = "devenv";
13
+ };
14
+
15
+ dotenv.enable = true;
16
+
17
+ imports = [
18
+ ./devenv # Loads ./devenv/default.nix
19
+ ];
20
+
21
+ scripts.hello.exec = ''
22
+ echo hello from $GREET
23
+ '';
24
+
25
+ # --- 2. Profile Definitions ---
26
+ profiles = {
27
+ # Development Environment Profile
28
+ dev.module = { config, ... }: {
29
+ env = {
30
+ UV_SYSTEM_PYTHON = "0";
31
+ OCO_AI_PROVIDER = "ollama";
32
+ OCO_PROMPT_MODULE = "conventional-commit";
33
+ OCO_MODEL = "qwen2.5-coder:3b";
34
+ };
35
+
36
+ packages = with pkgs; [
37
+ git
38
+ git-cliff
39
+ opencommit
40
+ jupyter
41
+ nixpkgs-fmt
42
+ docker
43
+ skopeo
44
+ podman
45
+ docker-buildx
46
+ ];
47
+
48
+ enterShell = ''
49
+ hello
50
+ git --version
51
+ export OCO_API_CUSTOM_HEADERS="{\"Authorization\": \"Bearer $OLLAMA_API_KEY\"}"
52
+ '';
53
+
54
+ enterTest = ''
55
+ echo "Running tests"
56
+ git --version | grep --color=auto "${pkgs.git.version}"
57
+ '';
58
+ };
59
+
60
+ # Container / Production Environment Profile
61
+ container-build.module = {
62
+ env = {
63
+ UV_SYSTEM_PYTHON = "1";
64
+ NODE_ENV = "production";
65
+ # Add any other production-specific environment variables here
66
+ };
67
+
68
+ packages = with pkgs; [
69
+ docker
70
+ docker-buildx
71
+ podman
72
+ skopeo
73
+ ];
74
+
75
+ languages.python.uv.sync.enable = false;
76
+ languages.python.lsp.enable = false;
77
+ };
78
+ };
79
+ }
@@ -1,8 +1,7 @@
1
+ # yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
1
2
  inputs:
2
3
  git-hooks:
3
4
  url: github:cachix/git-hooks.nix
4
5
  inputs:
5
6
  nixpkgs:
6
7
  follows: nixpkgs
7
- nixpkgs:
8
- url: github:cachix/devenv-nixpkgs/rolling
@@ -1,8 +1,9 @@
1
1
  from CensusForge import CensusAPI
2
+ import os
2
3
 
3
4
 
4
5
  def main():
5
- ca = CensusAPI()
6
+ ca = CensusAPI(str(os.getenv("CENSUS_KEY")))
6
7
  print(
7
8
  ca.query(
8
9
  dataset="acs-acs1-pumspr",
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "CensusForge"
3
- version = "1.2.0"
3
+ version = "1.2.2"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Alejandro Ouslan", email = "alejandro.ouslan@upr.edu" }]