File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
test-react :
13
13
runs-on : ubuntu-latest
14
- strategy :
15
- matrix :
16
- react-version : ["18.2.0"]
17
14
steps :
18
15
- uses : actions/checkout@v3
19
16
- uses : actions/setup-python@v3
40
37
uv pip install --upgrade pip
41
38
uv pip install wheel
42
39
uv pip install ".[dev]"
43
- echo "Using React version ${{ matrix.react-version }}"
44
40
npm ci
45
- npm install react@${{ matrix.react-version }} react-dom@${{ matrix.react-version }}
46
41
npm i
47
42
npm run build
48
43
timeout-minutes : 20
Original file line number Diff line number Diff line change
1
+ dash>=2
Original file line number Diff line number Diff line change 8
8
9
9
package_name = package ["name" ].replace (" " , "_" ).replace ("-" , "_" )
10
10
11
+ def read_req_file (req_type ):
12
+ with open (f"requires-{ req_type } .txt" , encoding = "utf-8" ) as fp :
13
+ requires = (line .strip () for line in fp )
14
+ return [req for req in requires if req and not req .startswith ("#" )]
15
+
11
16
setup (
12
17
name = package_name ,
13
18
url = package ["homepage" ],
18
23
include_package_data = True ,
19
24
license = package ["license" ],
20
25
description = package .get ("description" , package_name ),
21
- install_requires = [],
26
+ install_requires = read_req_file ("install" ),
27
+ extras_require = {
28
+ "dev" : read_req_file ("dev" ),
29
+ },
22
30
classifiers = [
23
31
"Framework :: Dash" ,
24
32
"Framework :: Flask" ,
You can’t perform that action at this time.
0 commit comments