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.
- censusforge-1.2.0/.forgejo/workflows/publish.yaml → censusforge-1.2.2/.forgejo/workflows/publish-pip.yaml +7 -3
- {censusforge-1.2.0 → censusforge-1.2.2}/.gitignore +5 -0
- censusforge-1.2.2/CHANGELOG.md +6 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/PKG-INFO +1 -1
- censusforge-1.2.2/devenv/default.nix +10 -0
- censusforge-1.2.2/devenv/languages.nix +12 -0
- censusforge-1.2.2/devenv/pre-commit.nix +29 -0
- censusforge-1.2.2/devenv/scripts.nix +10 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/devenv.lock +12 -34
- censusforge-1.2.2/devenv.nix +79 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/devenv.yaml +1 -2
- {censusforge-1.2.0 → censusforge-1.2.2}/main.py +2 -1
- {censusforge-1.2.0 → censusforge-1.2.2}/pyproject.toml +1 -1
- censusforge-1.2.2/requirements.txt +1558 -0
- censusforge-1.2.2/scripts/prod-build.sh +42 -0
- censusforge-1.2.2/scripts/release.sh +100 -0
- censusforge-1.2.2/uv.lock +2529 -0
- censusforge-1.2.0/CHANGELOG.md +0 -1
- censusforge-1.2.0/devenv.nix +0 -186
- censusforge-1.2.0/notebooks/.gitkeep +0 -0
- censusforge-1.2.0/requirements.txt +0 -1527
- censusforge-1.2.0/uv.lock +0 -2492
- {censusforge-1.2.0 → censusforge-1.2.2}/LICENSE +0 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/README.md +0 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/data/external/.gitkeep +0 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/data/processed/.gitkeep +0 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/data/raw/.gitkeep +0 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/docs/.gitkeep +0 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/notebooks/census.ipynb +0 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/notebooks/query.ipynb +0 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/renovate.json +0 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/src/CensusForge/CensusForge.py +0 -0
- {censusforge-1.2.0 → censusforge-1.2.2}/src/CensusForge/__init__.py +0 -0
- {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@
|
|
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
|
|
@@ -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
|
+
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"devenv": {
|
|
4
4
|
"locked": {
|
|
5
5
|
"dir": "src/modules",
|
|
6
|
-
"lastModified":
|
|
7
|
-
"narHash": "sha256-
|
|
6
|
+
"lastModified": 1785435900,
|
|
7
|
+
"narHash": "sha256-t+Cm2LICKr8eDNM/ruPJBqmCpybZWRgHpgiIuMLt0ww=",
|
|
8
8
|
"owner": "cachix",
|
|
9
9
|
"repo": "devenv",
|
|
10
|
-
"rev": "
|
|
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":
|
|
46
|
-
"narHash": "sha256-
|
|
44
|
+
"lastModified": 1784288435,
|
|
45
|
+
"narHash": "sha256-ReRHaLgr/uVqdD8afFSn+myXIfpHeOhP0yYe0TJqAA8=",
|
|
47
46
|
"owner": "cachix",
|
|
48
47
|
"repo": "git-hooks.nix",
|
|
49
|
-
"rev": "
|
|
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":
|
|
85
|
-
"narHash": "sha256-
|
|
62
|
+
"lastModified": 1785104946,
|
|
63
|
+
"narHash": "sha256-VLSslwCjlsICjyaUfrS7lGMypmO03fzmDAqhD85Ae84=",
|
|
86
64
|
"owner": "cachix",
|
|
87
65
|
"repo": "devenv-nixpkgs",
|
|
88
|
-
"rev": "
|
|
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":
|
|
102
|
-
"narHash": "sha256-
|
|
79
|
+
"lastModified": 1784783405,
|
|
80
|
+
"narHash": "sha256-4IHyyLgLBdKefkljdKod4IMn023pQiDXAWJA187cmdY=",
|
|
103
81
|
"owner": "NixOS",
|
|
104
82
|
"repo": "nixpkgs",
|
|
105
|
-
"rev": "
|
|
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
|
+
}
|