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

View File

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

View File

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