Skip to content

Commit

Permalink
[Expt/Fix] Fix py-pkg header files bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
innerNULL committed Sep 5, 2021
1 parent 2b8ad7e commit b3091f4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
- name: Test with pytest
run: |
#pytest
python3 -c "import pyfeather; print(pyfeather)"
python ./test/python/run_test.py
7 changes: 6 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,9 @@ jobs:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*-manylinux*.whl
twine upload dist/*-manylinux*.whl --verbose
- name: Test published wheels on PyPI
run: |
sleep 5m
python -m pip install pyfeather
python ./test/python/run_test.py
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ def build_extension(self, ext):

setup(
name="pyfeather",
version="0.0.2",
version="0.0.4",
author="innerNULL",
author_email="",
description="A project makes feature-hash easier.",
long_description="A feature-hash lib based on cpp at low level.",
python_requires='>=3.7, <3.10',
long_description="See 'https://github.com/innerNULL/feather'.",
#python_requires='>=3.7, <3.10',
ext_modules=[CMakeExtension("pyfeather")],
cmdclass={"build_ext": CMakeBuild},
zip_safe=False,
Expand Down
12 changes: 12 additions & 0 deletions test/python/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-


import pyfeather


if __name__ == "__main__":
libsvm_extractor = pyfeather.LibsvmExtractor("./conf/feather.conf", "ctr", False)

record1 = "{\"fea1\":2, \"fea10\":3.14, \"fea11\":[2.3, 1.4, 3.5, 6.8], \"ctr\":1}"
output1 = libsvm_extractor.Extract(record1)
print("output1: ", output1)

0 comments on commit b3091f4

Please sign in to comment.