Fix PyPI readme format.

pull/493/head
KmolYuan 2019-09-23 21:24:08 +08:00
parent 0b2cfc4201
commit 67a87605db
3 changed files with 13 additions and 12 deletions

View File

@ -38,16 +38,16 @@ matrix:
- python3 -m pip install -r cython/requirements.txt
script: &python-script
- cd cython && python3 setup.py test && cd -
deploy:
provider: pypi
user: $TWINE_USERNAME
password: $TWINE_PASSWORD
skip_cleanup: true
skip_existing: true
file: cython/dist/*.whl
on:
repo: KmolYuan/solvespace
tags: true
before_deploy: cd cython
after_success:
# PyPI deployment
- if [[ "$TRAVIS_REPO_SLUG" == "KmolYuan/Pyslvs-UI" && -n "$TRAVIS_TAG" ]]; then
python3 -m pip install auditwheel twine;
python3 setup.py sdist bdist_wheel;
mkdir dist-new;
auditwheel repair dist/*.whl -w dist-new;
python3 -m twine upload dist-new/*.whl --skip-existing;
fi
- <<: *linux
python: "3.7"
@ -77,7 +77,7 @@ matrix:
python3 -m pip install twine;
cd cython;
python3 setup.py sdist bdist_wheel;
python3 -m twine upload cython/dist/*.whl --skip-existing;
python3 -m twine upload dist/*.whl --skip-existing;
fi
- <<: *osx

View File

@ -63,7 +63,7 @@ for:
pip install twine &&
cd cython &&
python setup.py bdist_wheel &&
twine upload cython\dist\*.whl --skip-existing
twine upload dist\*.whl --skip-existing
)
- matrix:

View File

@ -113,6 +113,7 @@ setup(
author_email=__email__,
description="Python library of Solvespace",
long_description=read("README.md"),
long_description_content_type='text/markdown',
url="https://github.com/solvespace/solvespace",
packages=find_packages(exclude=('tests',)),
package_data={'': ["*.pyi"]},