Skip to content

Commit

Permalink
Build python wheel in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Jul 16, 2023
1 parent ead981a commit 4fd825a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint_python.yml
Expand Up @@ -23,6 +23,6 @@ jobs:
- run: pip install --editable . || pip install .
- run: mkdir --parents --verbose .mypy_cache
- run: mypy --ignore-missing-imports --install-types --non-interactive . || true
- run: pytest . || true
- run: pytest --doctest-modules . || true
- run: pytest .
- run: pytest --doctest-modules .
- run: shopt -s globstar && pyupgrade --py37-plus **/*.py || true
15 changes: 4 additions & 11 deletions README.rst
@@ -1,8 +1,8 @@
ChemPy
======

.. image:: http://hera.physchem.kth.se:8080/api/badges/bjodah/chempy/status.svg?ref=refs/heads/master
:target: http://hera.physchem.kth.se:8080/bjodah/chempy
.. image:: https://github.com/bjodah/chempy/actions/workflows/lint_python.yml/badge.svg
:target: https://github.com/bjodah/chempy/actions/workflows/lint_python.yml
:alt: Build status
.. image:: https://img.shields.io/pypi/v/chempy.svg
:target: https://pypi.python.org/pypi/chempy
Expand All @@ -13,12 +13,6 @@ ChemPy
.. image:: https://img.shields.io/pypi/l/chempy.svg
:target: https://github.com/bjodah/chempy/blob/master/LICENSE
:alt: License
.. image:: http://img.shields.io/badge/benchmarked%20by-asv-green.svg?style=flat
:target: http://hera.physchem.kth.se/~chempy/benchmarks
:alt: airspeedvelocity
.. image:: http://hera.physchem.kth.se/~chempy/branches/master/htmlcov/coverage.svg
:target: http://hera.physchem.kth.se/~chempy/branches/master/htmlcov
:alt: coverage
.. image:: http://joss.theoj.org/papers/10.21105/joss.00565/status.svg
:target: https://doi.org/10.21105/joss.00565
:alt: Journal of Open Source Software DOI
Expand Down Expand Up @@ -54,10 +48,9 @@ Documentation
-------------
The easiest way to get started is to have a look at the examples in this README,
and also the jupyter notebooks_. In addition there is auto-generated API documentation
for the latest `stable release here <https://bjodah.github.io/chempy/latest>`_
(and `here are <http://hera.physchem.kth.se/~chempy/branches/master/html>`_ the API docs for the development version).
for the latest `stable release here <https://bjodah.github.io/chempy/latest>`_.

.. _notebooks: http://hera.physchem.kth.se/~chempy/branches/master/examples
.. _notebooks: https://github.com/bjodah/chempy/tree/master/examples

Installation
------------
Expand Down
2 changes: 2 additions & 0 deletions scripts/release.sh
Expand Up @@ -25,13 +25,15 @@ PKG=$(find . -maxdepth 2 -name __init__.py -print0 | xargs -0 -n1 dirname | xarg
PKG_UPPER=$(echo $PKG | tr '[:lower:]' '[:upper:]')
./scripts/run_tests.sh
env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION python3 setup.py sdist
env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION python3 setup.py bdist_wheel
env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION ./scripts/generate_docs.sh

# All went well, add a tag and push it.
git tag -a v$VERSION -m v$VERSION
git push
git push --tags
twine upload dist/${PKG}-$VERSION.tar.gz
twine upload dist/${PKG}-$VERSION.whl

set +x
echo ""
Expand Down

0 comments on commit 4fd825a

Please sign in to comment.