File tree 6 files changed +24
-15
lines changed
6 files changed +24
-15
lines changed Original file line number Diff line number Diff line change
1
+ # ` .config ` directory
2
+
3
+ This directory is where local GAM and GYB configuration is stored.
4
+
5
+ The directoy's contents (except for this README) are ignored in ` .gitignore ` to
6
+ avoid committing sensitive information.
Original file line number Diff line number Diff line change @@ -6,24 +6,21 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
6
6
PYTHONUNBUFFERED=1 \
7
7
USER=compiler
8
8
9
- RUN useradd --create-home --shell /bin/bash $USER && \
10
- chown -R $USER /home/$USER
9
+ RUN useradd --create-home --shell /bin/bash $USER
11
10
12
11
USER $USER
13
12
ENV PATH "$PATH:/home/$USER/.local/bin"
14
13
WORKDIR /home/$USER/admin
15
14
16
15
RUN python -m pip install --upgrade pip
17
16
17
+ COPY .git .git
18
18
COPY compiler_admin compiler_admin
19
19
COPY pyproject.toml pyproject.toml
20
20
RUN pip install -e .[dev,test]
21
21
22
- # install pre-commit environments in throwaway Git repository
23
- # https://stackoverflow.com/a/68758943
24
- COPY .pre-commit-config.yaml .
25
- RUN git init . && \
26
- pre-commit install-hooks && \
27
- rm -rf .git
22
+ USER root
23
+ RUN chown -R $USER /home/$USER
24
+ USER $USER
28
25
29
26
CMD ["sleep" , "infinity" ]
Original file line number Diff line number Diff line change 3
3
"dockerComposeFile" : [" ../compose.yaml" ],
4
4
"service" : " dev" ,
5
5
"workspaceFolder" : " /home/compiler/admin" ,
6
+ "postAttachCommand" : [" /bin/bash" , " .devcontainer/postAttach.sh" ],
6
7
"customizations" : {
7
8
"vscode" : {
8
9
// Set *default* container specific settings.json values on container create.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -eu
3
+
4
+ pre-commit install --install-hooks
Original file line number Diff line number Diff line change 1
1
GYB-GMail-Backup- * /
2
2
__pycache__
3
- .config
3
+ .config /*
4
+ ! .config /README.md
4
5
.coverage
5
6
.downloads
6
7
.pytest_cache
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ authors = [
11
11
]
12
12
requires-python = " >=3.11"
13
13
dependencies = [
14
- " advanced-gam-for-google-workspace @ git+https://github.com/taers232c/GAMADV-XTD3.git@v6.61.14 #subdirectory=src"
14
+ " advanced-gam-for-google-workspace @ git+https://github.com/taers232c/GAMADV-XTD3.git@v6.71.15 #subdirectory=src"
15
15
]
16
16
17
17
[project .urls ]
@@ -23,7 +23,8 @@ dev = [
23
23
" black" ,
24
24
" build" ,
25
25
" flake8" ,
26
- " pre-commit"
26
+ " pre-commit" ,
27
+ " setuptools_scm>=8"
27
28
]
28
29
test = [
29
30
" coverage" ,
@@ -35,7 +36,7 @@ test = [
35
36
compiler-admin = " compiler_admin.main:main"
36
37
37
38
[build-system ]
38
- requires = [" setuptools>=64 " , " wheel " , " setuptools-git-versioning<2 " ]
39
+ requires = [" setuptools>=65 " , " setuptools-scm>=8 " ]
39
40
build-backend = " setuptools.build_meta"
40
41
41
42
[tool .black ]
@@ -63,6 +64,5 @@ norecursedirs = [
63
64
" .vscode" ,
64
65
]
65
66
66
- [tool .setuptools-git-versioning ]
67
- enabled = true
68
- dev_template = " {tag}+{ccount}.{sha}"
67
+ [tool .setuptools_scm ]
68
+ # intentionally left blank, but we need the section header to activate the tool
You can’t perform that action at this time.
0 commit comments