CensusForge 1.0.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.0.0/.forgejo/workflows/publish.yaml → censusforge-1.2.2/.forgejo/workflows/publish-pip.yaml +7 -3
- {censusforge-1.0.0 → censusforge-1.2.2}/.gitignore +35 -3
- censusforge-1.2.2/CHANGELOG.md +6 -0
- {censusforge-1.0.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.2/devenv.lock +103 -0
- censusforge-1.2.2/devenv.nix +79 -0
- censusforge-1.2.2/devenv.yaml +7 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/main.py +2 -1
- {censusforge-1.0.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.0.0 → censusforge-1.2.2/scripts}/release.sh +17 -8
- censusforge-1.2.2/uv.lock +2529 -0
- censusforge-1.0.0/.pre-commit-config.yaml +0 -15
- censusforge-1.0.0/.python-version +0 -1
- censusforge-1.0.0/requirements.txt +0 -50
- censusforge-1.0.0/src/CensusForge/database.db +0 -0
- censusforge-1.0.0/uv.lock +0 -2492
- {censusforge-1.0.0 → censusforge-1.2.2}/LICENSE +0 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/README.md +0 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/data/external/.gitkeep +0 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/data/processed/.gitkeep +0 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/data/raw/.gitkeep +0 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/docs/.gitkeep +0 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/notebooks/census.ipynb +0 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/notebooks/query.ipynb +0 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/renovate.json +0 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/src/CensusForge/CensusForge.py +0 -0
- {censusforge-1.0.0 → censusforge-1.2.2}/src/CensusForge/__init__.py +0 -0
- {censusforge-1.0.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
|
|
@@ -26,6 +26,19 @@ share/python-wheels/
|
|
|
26
26
|
*.egg
|
|
27
27
|
MANIFEST
|
|
28
28
|
|
|
29
|
+
# Database files
|
|
30
|
+
*.sqlite3
|
|
31
|
+
*.db
|
|
32
|
+
*.sqlite
|
|
33
|
+
*.ddb
|
|
34
|
+
*.wal
|
|
35
|
+
*.csv
|
|
36
|
+
*.txt
|
|
37
|
+
*.parquet
|
|
38
|
+
|
|
39
|
+
# Exeption for requirements
|
|
40
|
+
!requirements.txt
|
|
41
|
+
|
|
29
42
|
# PyInstaller
|
|
30
43
|
# Usually these files are written by a python script from a template
|
|
31
44
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
@@ -85,7 +98,7 @@ ipython_config.py
|
|
|
85
98
|
# pyenv
|
|
86
99
|
# For a library or package, you might want to ignore these files since the code is
|
|
87
100
|
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
-
|
|
101
|
+
.python-version
|
|
89
102
|
|
|
90
103
|
# pipenv
|
|
91
104
|
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
@@ -161,10 +174,29 @@ cython_debug/
|
|
|
161
174
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
162
175
|
#.idea/
|
|
163
176
|
|
|
164
|
-
|
|
165
|
-
*.
|
|
177
|
+
# ignore mac files
|
|
178
|
+
*.DS_Store
|
|
166
179
|
|
|
180
|
+
# ignore quarter files
|
|
181
|
+
# vscode
|
|
182
|
+
.vscode
|
|
183
|
+
data_process.log
|
|
184
|
+
docs/aux/*
|
|
185
|
+
docs/out/*
|
|
186
|
+
qcew
|
|
167
187
|
|
|
168
188
|
# Ignore Notebook
|
|
169
189
|
notebooks/*
|
|
170
190
|
!notebooks/*.ipynb
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
# Devenv
|
|
194
|
+
.devenv*
|
|
195
|
+
devenv.local.nix
|
|
196
|
+
devenv.local.yaml
|
|
197
|
+
|
|
198
|
+
# direnv
|
|
199
|
+
.direnv
|
|
200
|
+
|
|
201
|
+
# pre-commit
|
|
202
|
+
.pre-commit-config.yaml
|
|
@@ -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,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nodes": {
|
|
3
|
+
"devenv": {
|
|
4
|
+
"locked": {
|
|
5
|
+
"dir": "src/modules",
|
|
6
|
+
"lastModified": 1785435900,
|
|
7
|
+
"narHash": "sha256-t+Cm2LICKr8eDNM/ruPJBqmCpybZWRgHpgiIuMLt0ww=",
|
|
8
|
+
"owner": "cachix",
|
|
9
|
+
"repo": "devenv",
|
|
10
|
+
"rev": "d0ea5226b162f4611e3541cc45547d210e83ae03",
|
|
11
|
+
"type": "github"
|
|
12
|
+
},
|
|
13
|
+
"original": {
|
|
14
|
+
"dir": "src/modules",
|
|
15
|
+
"owner": "cachix",
|
|
16
|
+
"repo": "devenv",
|
|
17
|
+
"type": "github"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"flake-compat": {
|
|
21
|
+
"flake": false,
|
|
22
|
+
"locked": {
|
|
23
|
+
"lastModified": 1767039857,
|
|
24
|
+
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
|
25
|
+
"owner": "NixOS",
|
|
26
|
+
"repo": "flake-compat",
|
|
27
|
+
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
|
28
|
+
"type": "github"
|
|
29
|
+
},
|
|
30
|
+
"original": {
|
|
31
|
+
"owner": "NixOS",
|
|
32
|
+
"repo": "flake-compat",
|
|
33
|
+
"type": "github"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"git-hooks": {
|
|
37
|
+
"inputs": {
|
|
38
|
+
"flake-compat": "flake-compat",
|
|
39
|
+
"nixpkgs": [
|
|
40
|
+
"nixpkgs"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"locked": {
|
|
44
|
+
"lastModified": 1784288435,
|
|
45
|
+
"narHash": "sha256-ReRHaLgr/uVqdD8afFSn+myXIfpHeOhP0yYe0TJqAA8=",
|
|
46
|
+
"owner": "cachix",
|
|
47
|
+
"repo": "git-hooks.nix",
|
|
48
|
+
"rev": "43b3c1ab9d40fb1dbb008f451988a91e375825e9",
|
|
49
|
+
"type": "github"
|
|
50
|
+
},
|
|
51
|
+
"original": {
|
|
52
|
+
"owner": "cachix",
|
|
53
|
+
"repo": "git-hooks.nix",
|
|
54
|
+
"type": "github"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"nixpkgs": {
|
|
58
|
+
"inputs": {
|
|
59
|
+
"nixpkgs-src": "nixpkgs-src"
|
|
60
|
+
},
|
|
61
|
+
"locked": {
|
|
62
|
+
"lastModified": 1785104946,
|
|
63
|
+
"narHash": "sha256-VLSslwCjlsICjyaUfrS7lGMypmO03fzmDAqhD85Ae84=",
|
|
64
|
+
"owner": "cachix",
|
|
65
|
+
"repo": "devenv-nixpkgs",
|
|
66
|
+
"rev": "c946ff36bf193309589932c371bd5ae6653c912e",
|
|
67
|
+
"type": "github"
|
|
68
|
+
},
|
|
69
|
+
"original": {
|
|
70
|
+
"owner": "cachix",
|
|
71
|
+
"ref": "rolling",
|
|
72
|
+
"repo": "devenv-nixpkgs",
|
|
73
|
+
"type": "github"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"nixpkgs-src": {
|
|
77
|
+
"flake": false,
|
|
78
|
+
"locked": {
|
|
79
|
+
"lastModified": 1784783405,
|
|
80
|
+
"narHash": "sha256-4IHyyLgLBdKefkljdKod4IMn023pQiDXAWJA187cmdY=",
|
|
81
|
+
"owner": "NixOS",
|
|
82
|
+
"repo": "nixpkgs",
|
|
83
|
+
"rev": "7525d999cd850b9a488817abc89c75dc733acf17",
|
|
84
|
+
"type": "github"
|
|
85
|
+
},
|
|
86
|
+
"original": {
|
|
87
|
+
"owner": "NixOS",
|
|
88
|
+
"ref": "nixpkgs-unstable",
|
|
89
|
+
"repo": "nixpkgs",
|
|
90
|
+
"type": "github"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"root": {
|
|
94
|
+
"inputs": {
|
|
95
|
+
"devenv": "devenv",
|
|
96
|
+
"git-hooks": "git-hooks",
|
|
97
|
+
"nixpkgs": "nixpkgs"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"root": "root",
|
|
102
|
+
"version": 7
|
|
103
|
+
}
|
|
@@ -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
|
+
}
|