Skip to content

Commit 58b9da4

Browse files
authored
[fireci] Update fireci setup declaration (#6851)
Moved all configuration to the `pyproject.toml` file and removed the old `setup.cfg` file.
1 parent dbf5d01 commit 58b9da4

File tree

4 files changed

+49
-48
lines changed

4 files changed

+49
-48
lines changed

.github/workflows/fireci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- run: |
2525
pytest ci/fireci
2626
- run: |
27-
mypy --config-file ci/fireci/setup.cfg ci/fireci/
27+
mypy --config-file ci/fireci/pyproject.toml ci/fireci/

ci/fireci/pyproject.toml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
11
[build-system]
2-
requires = ["setuptools ~= 58.0"]
2+
requires = ["setuptools ~= 70.0"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "fireci"
7+
version = "0.1"
8+
dependencies = [
9+
"protobuf==3.20.3",
10+
"click==8.1.7",
11+
"google-cloud-storage==2.18.2",
12+
"mypy==1.6.0",
13+
"numpy==1.24.4",
14+
"pandas==1.5.3",
15+
"PyGithub==1.58.2",
16+
"pystache==0.6.0",
17+
"requests==2.31.0",
18+
"seaborn==0.12.2",
19+
"PyYAML==6.0.1",
20+
"termcolor==2.4.0",
21+
"pytest"
22+
]
23+
24+
[project.scripts]
25+
fireci = "fireci.main:cli"
26+
27+
[tool.setuptools]
28+
packages = ["fireci", "fireciplugins"]
29+
30+
[tool.mypy]
31+
strict_optional = false
32+
33+
[[tool.mypy.overrides]]
34+
module = [
35+
"google.cloud",
36+
"matplotlib",
37+
"matplotlib.pyplot",
38+
"pandas",
39+
"pystache",
40+
"requests",
41+
"seaborn",
42+
"yaml"
43+
]
44+
ignore_missing_imports = true

ci/fireci/setup.cfg

Lines changed: 0 additions & 45 deletions
This file was deleted.

ci/run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
# limitations under the License.
1616

1717
set -e
18+
set -x
1819

1920
DIRECTORY=$(cd `dirname $0` && pwd)
20-
pip3 install -e $DIRECTORY/fireci >> /dev/null
21+
python3 -m ensurepip --upgrade
22+
python3 -m pip install --upgrade setuptools
23+
python3 -m pip install --upgrade pip
24+
python3 -m pip install --upgrade wheel
25+
python3 -m pip install -e $DIRECTORY/fireci >> /dev/null
2126
fireci $@

0 commit comments

Comments
 (0)