Merge branch 'python' of https://github.com/KmolYuan/solvespace into python

pull/493/head
KmolYuan 2019-09-24 14:02:55 +08:00
commit bc674db3d3
3 changed files with 16 additions and 13 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"
@ -75,8 +75,9 @@ matrix:
# PyPI deployment
- if [ "$TRAVIS_REPO_SLUG" == "KmolYuan/solvespace" && -n "$TRAVIS_TAG" ]; then
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

@ -1,6 +1,7 @@
[![Version](https://img.shields.io/badge/version-3.0.0-yellow.svg)](https://github.com/KmolYuan/solvespace/releases/latest)
[![Build status](https://ci.appveyor.com/api/projects/status/b2o8jw7xnfqghqr5?svg=true)](https://ci.appveyor.com/project/KmolYuan/solvespace)
[![Build status](https://travis-ci.org/KmolYuan/solvespace.svg)](https://travis-ci.org/KmolYuan/solvespace)
![OS](https://img.shields.io/badge/OS-Windows%2C%20Mac%20OS%2C%20Ubuntu-blue.svg)
[![Build status](https://img.shields.io/travis/KmolYuan/solvespace.svg?logo=travis)](https://travis-ci.org/KmolYuan/solvespace)
[![PyPI](https://img.shields.io/pypi/v/python-solvespace.svg)](https://pypi.org/project/python-solvespace/)
[![GitHub license](https://img.shields.io/badge/license-GPLv3+-blue.svg)](https://raw.githubusercontent.com/KmolYuan/solvespace/master/LICENSE)
python-solvespace

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"]},