Skip to content

Commit

Permalink
Merge pull request #9 from LucienShui/fix/windows_ci
Browse files Browse the repository at this point in the history
Fix ci under windows
  • Loading branch information
LucienShui committed Oct 13, 2020
2 parents 609510d + adb8bf3 commit 0d09225
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
shell: bash
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
rm dist/*.tar.gz
find dist -name "*.tar.gz" | xargs rm -rf
twine upload dist/*
linux-build:
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from os import path
from shutil import move

from .flow_network.__version__ import __title__, __description__, __url__
from .flow_network.__version__ import __version__, __author__
from .flow_network.__version__ import __author_email__
from flow_network.__version__ import __title__, __description__, __url__
from flow_network.__version__ import __version__, __author__
from flow_network.__version__ import __author_email__


def readme(filename: str = 'README.md') -> str:
Expand Down Expand Up @@ -49,7 +49,7 @@ def build_extension(self, ext: CustomExtension):
custom_extension = CustomExtension(name='_core',
sources=['flow-network.cpp', 'py-api.cpp'],
base_dir='flow_network/core',
extra_compile_args=['-std=c++14', '-W', '-fPIC'])
extra_compile_args=['-std=c++11'])

setup(
name=__title__,
Expand Down

0 comments on commit 0d09225

Please sign in to comment.