Skip to content

Commit

Permalink
github action/build: try to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Dec 11, 2024
1 parent 92499d7 commit 7c3c01a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: pip install and test
run: |
python -c "import sys; print(sys.version)"
export STOCK_PANDAS_BUILDING = 1
make install
make build
# make lint
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ test_files = *
# test_files = cum_append

export STOCK_PANDAS_BUILDING = 1
export STOCK_PANDAS_UPLOADING = 1

test:
STOCK_PANDAS_COW=1 pytest -s -v test/test_$(test_files).py --doctest-modules --cov stock_pandas --cov-config=.coveragerc --cov-report term-missing
Expand Down
23 changes: 10 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import numpy as np

BUILDING = os.environ.get('STOCK_PANDAS_BUILDING')
UPLOADING = os.environ.get('STOCK_PANDAS_UPLOADING')

ext_kwargs = dict(
# Ignore warning caused by cpython for using deprecated apis
Expand Down Expand Up @@ -43,15 +42,13 @@
)
]


if __name__ == '__main__':
setup(
ext_modules=extensions,
packages=[
'stock_pandas',
'stock_pandas.commands',
'stock_pandas.directive',
'stock_pandas.math',
'stock_pandas.meta'
]
)
setup(
ext_modules=extensions,
packages=[
'stock_pandas',
'stock_pandas.commands',
'stock_pandas.directive',
'stock_pandas.math',
'stock_pandas.meta'
]
)

0 comments on commit 7c3c01a

Please sign in to comment.