Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
slawler committed Aug 7, 2024
1 parent 1359a99 commit ec8008a
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 69 deletions.
130 changes: 65 additions & 65 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
name: Release
# name: Release

on:
push:
branches:
- main
# on:
# push:
# branches:
# - main

permissions:
contents: write
# permissions:
# contents: write

jobs:
release:
name: release
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v4
- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Print Python version
run: python --version
- name: Install release dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build twine toml
- name: Verify toml installation
run: python -c "import toml; print('toml module is installed')"
- name: Extract version from pyproject.toml
id: get_version
shell: pwsh
run: |
$version = python -c "import toml; print(toml.load('pyproject.toml')['project']['version'])"
echo "::set-output name=VERSION::$version"
- name: Build wheel and source distribution
run: python -m build
- name: List dist directory contents
run: dir dist
- name: Publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: python -m twine upload dist/*
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.get_version.outputs.VERSION }}
release_name: Release v${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
- name: List dist directory contents again
run: dir dist
- name: Upload Source Distribution
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/ripple1d-${{ steps.get_version.outputs.VERSION }}.tar.gz
asset_name: ripple1d-v${{ steps.get_version.outputs.VERSION }}.tar.gz
asset_content_type: application/gzip
# jobs:
# release:
# name: release
# runs-on: windows-latest
# strategy:
# matrix:
# python-version: ['3.10']
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python
# id: setup-python
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# - name: Print Python version
# run: python --version
# - name: Install release dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install build twine toml
# - name: Verify toml installation
# run: python -c "import toml; print('toml module is installed')"
# - name: Extract version from pyproject.toml
# id: get_version
# shell: pwsh
# run: |
# $version = python -c "import toml; print(toml.load('pyproject.toml')['project']['version'])"
# echo "::set-output name=VERSION::$version"
# - name: Build wheel and source distribution
# run: python -m build
# - name: List dist directory contents
# run: dir dist
# - name: Publish package
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
# run: python -m twine upload dist/*
# - name: Create GitHub Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: v${{ steps.get_version.outputs.VERSION }}
# release_name: Release v${{ steps.get_version.outputs.VERSION }}
# draft: false
# prerelease: false
# - name: List dist directory contents again
# run: dir dist
# - name: Upload Source Distribution
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: dist/ripple1d-${{ steps.get_version.outputs.VERSION }}.tar.gz
# asset_name: ripple1d-v${{ steps.get_version.outputs.VERSION }}.tar.gz
# asset_content_type: application/gzip
8 changes: 4 additions & 4 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ contextily==1.6.0
contourpy==1.2.1
cycler==0.12.1
decorator==5.1.1
docutils==0.21.2
# docutils==0.21.2
executing==2.0.1
fiona==1.9.6
Flask==3.0.3
Expand Down Expand Up @@ -47,8 +47,7 @@ kiwisolver==1.4.5
Markdown==3.6
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.9.1
matplotlib-inline==0.1.7
# matplotlib==3.9.1
mdit-py-plugins==0.4.1
mdurl==0.1.2
mercantile==1.2.1
Expand All @@ -58,7 +57,7 @@ mkdocs-get-deps==0.2.0
mock==5.1.0
more-itertools==10.4.0
mypy-boto3-s3==1.34.120
myst-parser==3.0.1
myst-parser
nest-asyncio==1.6.0
nh3==0.2.18
numpy==2.0.1
Expand Down Expand Up @@ -112,6 +111,7 @@ sphinxcontrib-jquery==4.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
sphinx-rtd-theme==2.0.0
stack-data==0.6.3
tabulate==0.9.0
toml==0.10.2
Expand Down

0 comments on commit ec8008a

Please sign in to comment.