diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..4e1ef42 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,31 @@ +# This workflows will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/README.md b/README.md index 6aeaa70..b16369a 100644 --- a/README.md +++ b/README.md @@ -12,24 +12,22 @@ pyYeti has tools mostly related to structural dynamics: - * Solve matrix equations of motion in the time and - frequency domains - * Shock response spectrum (SRS) - * Fatigue damage equivalent power spectral densities (PSD) - * Force limiting analysis tools - * Hurty-Craig-Bampton model checks - * Coupled loads analysis tools - * Statistics tools for computing k-factors (for tolerance - bounds and intervals) and for order statistics - * Read/write Nastran output4 (.op4) files - * Limited capability to read Nastran output2 (.op2) files - * A data-cursor for interacting with 2D x-y plots - * Rainflow cycle counting - * Resample data with the Lanczos method - * A "vectorized" writing module - * Eigensolution with the subspace iteration method - * Tools for working with the "nas2cam" Nastran DMAP - * Other miscellaneous tools +* Solve matrix equations of motion in the time and frequency domains +* Shock response spectrum (SRS) +* Fatigue damage equivalent power spectral densities (PSD) +* Force limiting analysis tools +* Hurty-Craig-Bampton model checks +* Coupled loads analysis tools +* Statistics tools for computing k-factors (for tolerance bounds and intervals) and for order statistics +* Read/write Nastran output4 (.op4) files +* Limited capability to read Nastran output2 (.op2) files +* A data-cursor for interacting with 2D x-y plots +* Rainflow cycle counting +* Resample data with the Lanczos method +* A "vectorized" writing module +* Eigensolution with the subspace iteration method +* Tools for working with the "nas2cam" Nastran DMAP +* Other miscellaneous tools ## Installation @@ -39,7 +37,7 @@ Matplotlib, pandas and setuptools. These are all conveniently provided by the Anaconda Python distribution: https://www.anaconda.com/distribution/. -You can install pyYeti via `pip`:: +You can install pyYeti via `pip`: pip install pyyeti @@ -57,7 +55,7 @@ need a C compiler installed. pyYeti documentation is here: - http://pyyeti.readthedocs.org/ + http://pyyeti.readthedocs.org/ ## Tutorials @@ -66,7 +64,7 @@ The documentation contains several tutorials in the documentation. These are also available (in their original form) as Jupyter notebooks: - https://github.com/twmacro/pyyeti/tree/master/docs/tutorials + https://github.com/twmacro/pyyeti/tree/master/docs/tutorials ## License