mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-15 08:46:56 +08:00
fix pip install not matching packages
This commit is contained in:
16
.github/workflows/python-publish.yml
vendored
16
.github/workflows/python-publish.yml
vendored
@@ -3,9 +3,15 @@
|
|||||||
|
|
||||||
name: Upload Python Package
|
name: Upload Python Package
|
||||||
|
|
||||||
|
# on:
|
||||||
|
# release:
|
||||||
|
# types: [published]
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [published]
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy_with_bdist_wheel:
|
deploy_with_bdist_wheel:
|
||||||
@@ -33,10 +39,10 @@ jobs:
|
|||||||
python -c "
|
python -c "
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import subprocess
|
import subprocess
|
||||||
replaced = subprocess.run(['sw_vers', '-productVersion'], capture_output=True, text=True).stdout.strip().split('.', 1)[0] + '_0'
|
replaced = subprocess.run(['sw_vers', '-productVersion'], capture_output=True, text=True).stdout.strip().split('.', 1)[0] + '_0_x86_64'
|
||||||
for whl_file in Path('./dist').glob('*.whl'):
|
for whl_file in Path('./dist').glob('*.whl'):
|
||||||
parts = whl_file.name.split('_')
|
parts = whl_file.stem.split('_')
|
||||||
be_replaced = '_'.join(parts[1:3])
|
be_replaced = '_'.join(parts[1:])
|
||||||
new_name = whl_file.name.replace(be_replaced, replaced)
|
new_name = whl_file.name.replace(be_replaced, replaced)
|
||||||
new_whl_file = whl_file.with_name(new_name)
|
new_whl_file = whl_file.with_name(new_name)
|
||||||
whl_file.rename(new_whl_file)
|
whl_file.rename(new_whl_file)
|
||||||
|
|||||||
12
.github/workflows/test_qlib_from_pip.yml
vendored
12
.github/workflows/test_qlib_from_pip.yml
vendored
@@ -1,10 +1,14 @@
|
|||||||
name: Test qlib from pip
|
name: Test qlib from pip
|
||||||
|
|
||||||
|
# on:
|
||||||
|
# push:
|
||||||
|
# branches: [ main ]
|
||||||
|
# pull_request:
|
||||||
|
# branches: [ main ]
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
branches: [ main ]
|
types: [published]
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Licensed under the MIT License.
|
# Licensed under the MIT License.
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
__version__ = "0.9.5.90"
|
__version__ = "0.9.5.89"
|
||||||
__version__bak = __version__ # This version is backup for QlibConfig.reset_qlib_version
|
__version__bak = __version__ # This version is backup for QlibConfig.reset_qlib_version
|
||||||
import os
|
import os
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|||||||
Reference in New Issue
Block a user