mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
Build and publish to test-pypi
This commit is contained in:
parent
f34824b45b
commit
60a944500b
77
.github/workflows/python-package.yml
vendored
77
.github/workflows/python-package.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ 3.7, 3.8, 3.9 ]
|
python-version: [ 3.7, 3.8, 3.9 ]
|
||||||
os: [ macos-latest, windows-latest, Ubuntu-latest ]
|
os: [ macos-latest, windows-latest, ubuntu-latest ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -30,13 +30,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Set up Linux environment
|
- name: Set linux compiler
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
echo "CC=gcc-10" >> $GITHUB_ENV
|
echo "CC=gcc-10" >> $GITHUB_ENV
|
||||||
echo "CXX=g++-10" >> $GITHUB_ENV
|
echo "CXX=g++-10" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set up macOS environment
|
- name: Install libomp
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
# openMP isnt part of core apple clang for some reason?
|
# openMP isnt part of core apple clang for some reason?
|
||||||
run: brew install libomp
|
run: brew install libomp
|
||||||
@ -58,3 +58,74 @@ jobs:
|
|||||||
|
|
||||||
- name: Test with nose
|
- name: Test with nose
|
||||||
run: nosetests tests -d
|
run: nosetests tests -d
|
||||||
|
|
||||||
|
publish-wheel:
|
||||||
|
needs: test
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [ 3.7, 3.8, 3.9 ]
|
||||||
|
os: [ macos-latest, windows-latest, ubuntu-latest ]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
# Whether to checkout submodules: `true` to checkout submodules or `recursive` to
|
||||||
|
# recursively checkout submodules.
|
||||||
|
submodules: 'true'
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Set linux compiler
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
echo "CC=gcc-10" >> $GITHUB_ENV
|
||||||
|
echo "CXX=g++-10" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Install libomp
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
# openMP isnt part of core apple clang for some reason?
|
||||||
|
run: brew install libomp
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
python -m pip install wheel twine setuptools
|
||||||
|
python -m pip install build --user
|
||||||
|
|
||||||
|
- name: Build a binary wheel
|
||||||
|
run: python -m build --wheel --outdir dist/
|
||||||
|
|
||||||
|
- name: Publish to Test PyPI
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
||||||
|
repository_url: https://test.pypi.org/legacy/
|
||||||
|
|
||||||
|
publish-sdist:
|
||||||
|
needs: test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
python -m pip install setuptools wheel twine
|
||||||
|
python -m pip install build --user
|
||||||
|
|
||||||
|
- name: Build a source tarball
|
||||||
|
run: python -m build --sdist --outdir dist/
|
||||||
|
|
||||||
|
- name: Publish to Test PyPI
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
||||||
|
repository_url: https://test.pypi.org/legacy/
|
7
setup.py
7
setup.py
@ -126,10 +126,9 @@ setup(
|
|||||||
"docs": ["sphinx", "myst-parser", "sphinx-rtd-theme"],
|
"docs": ["sphinx", "myst-parser", "sphinx-rtd-theme"],
|
||||||
"stubs": ["pybind11-stubgen"],
|
"stubs": ["pybind11-stubgen"],
|
||||||
},
|
},
|
||||||
entry_points='''
|
entry_points={
|
||||||
[console_scripts]
|
'console_scripts': ['quicktex = quicktex.__main__:main']
|
||||||
quicktex=quicktex.__main__:main
|
},
|
||||||
''',
|
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
license='GNU Lesser General Public License v3 (LGPLv3)',
|
license='GNU Lesser General Public License v3 (LGPLv3)',
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
Loading…
Reference in New Issue
Block a user