File tree 6 files changed +46
-9
lines changed
6 files changed +46
-9
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ RUN python -m pip install --upgrade pip
15
15
16
16
WORKDIR /home/$USER/customer-success
17
17
18
+ COPY pyproject.toml pyproject.toml
19
+ RUN pip install -e .[dev, qr_codes]
20
+
18
21
COPY docs/requirements.txt docs/requirements.txt
19
22
RUN pip install -r docs/requirements.txt
20
-
21
- COPY qr_codes/requirements.txt qr_codes/requirements.txt
22
- RUN pip install -r qr_codes/requirements.txt
Original file line number Diff line number Diff line change 25
25
" ms-python.python" ,
26
26
" ms-python.black-formatter" ,
27
27
" ms-python.flake8" ,
28
- " SimonSiefke.svg-preview"
28
+ " SimonSiefke.svg-preview" ,
29
+ " tamasfe.even-better-toml"
29
30
]
30
31
}
31
32
}
Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ jobs:
45
45
with :
46
46
python-version : " 3.11"
47
47
cache : pip
48
- cache-dependency-path : " qr_codes/requirements.txt "
48
+ cache-dependency-path : " pyproject.toml "
49
49
50
50
- name : Install dependencies
51
- run : pip install -r qr_codes/requirements.txt
51
+ run : pip install -e .[qr_codes]
52
52
53
53
- name : Generate QR code
54
54
run : |
Original file line number Diff line number Diff line change 1
1
.DS_Store
2
+ * .egg-info
2
3
qr_codes /* .png
3
4
! qr_codes /calitp.org.png
Original file line number Diff line number Diff line change
1
+ [project ]
2
+ name = " customer-success"
3
+ description = " Administrative tasks for Cal-ITP's Customer Success team"
4
+ version = " 1.0.0"
5
+ readme = " README.md"
6
+ license = { file = " LICENSE" }
7
+ classifiers = [" Programming Language :: Python :: 3 :: Only" ]
8
+ requires-python = " >=3.11"
9
+ dependencies = []
10
+
11
+ [project .urls ]
12
+ code = " https://github.com/cal-itp/customer-success"
13
+ tracker = " https://github.com/cal-itp/customer-success/issues"
14
+
15
+ [project .optional-dependencies ]
16
+ dev = [
17
+ " black" ,
18
+ " build" ,
19
+ " flake8" ,
20
+ " pre-commit"
21
+ ]
22
+ qr_codes = [
23
+ " pypng==0.20220715.0" ,
24
+ " qrcode[pil]==7.4.2" ,
25
+ " typing_extensions==4.10.0"
26
+ ]
27
+
28
+ [build-system ]
29
+ requires = [" setuptools>=65" ]
30
+ build-backend = " setuptools.build_meta"
31
+
32
+ [tool .black ]
33
+ line-length = 127
34
+ target-version = [' py311' ]
35
+ include = ' \.pyi?$'
36
+
37
+ [tool .setuptools ]
38
+ packages = []
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments