From 2b506c4d72d37bc2279db2a76924e2e4dc0511b5 Mon Sep 17 00:00:00 2001 From: Joey LaCava Date: Fri, 15 Oct 2021 03:49:23 -0400 Subject: [PATCH 1/3] init docs action; --- .appveyor.yml | 67 -------------------------------------- .github/workflows/docs.yml | 26 +++++++++++++++ 2 files changed, 26 insertions(+), 67 deletions(-) delete mode 100644 .appveyor.yml create mode 100644 .github/workflows/docs.yml diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index a958b31..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,67 +0,0 @@ -version: '{branch}-{build}' -build: off -image: Visual Studio 2019 -environment: - matrix: - - TOXENV: check - TOXPYTHON: C:\Python36\python.exe - PYTHON_HOME: C:\Python36 - PYTHON_VERSION: '3.6' - PYTHON_ARCH: '32' - - TOXENV: py36,codecov - TOXPYTHON: C:\Python36\python.exe - PYTHON_HOME: C:\Python36 - PYTHON_VERSION: '3.6' - PYTHON_ARCH: '32' - - TOXENV: py36,codecov - TOXPYTHON: C:\Python36-x64\python.exe - PYTHON_HOME: C:\Python36-x64 - PYTHON_VERSION: '3.6' - PYTHON_ARCH: '64' - - TOXENV: py37,codecov - TOXPYTHON: C:\Python37\python.exe - PYTHON_HOME: C:\Python37 - PYTHON_VERSION: '3.7' - PYTHON_ARCH: '32' - - TOXENV: py37,codecov - TOXPYTHON: C:\Python37-x64\python.exe - PYTHON_HOME: C:\Python37-x64 - PYTHON_VERSION: '3.7' - PYTHON_ARCH: '64' - - TOXENV: py38,codecov - TOXPYTHON: C:\Python38\python.exe - PYTHON_HOME: C:\Python38 - PYTHON_VERSION: '3.8' - PYTHON_ARCH: '32' - - TOXENV: py38,codecov - TOXPYTHON: C:\Python38-x64\python.exe - PYTHON_HOME: C:\Python38-x64 - PYTHON_VERSION: '3.8' - PYTHON_ARCH: '64' - - TOXENV: py39,codecov - TOXPYTHON: C:\Python39\python.exe - PYTHON_HOME: C:\Python39 - PYTHON_VERSION: '3.9' - PYTHON_ARCH: '32' - - TOXENV: py39,codecov - TOXPYTHON: C:\Python39-x64\python.exe - PYTHON_HOME: C:\Python39-x64 - PYTHON_VERSION: '3.9' - PYTHON_ARCH: '64' -init: - - ps: echo $env:TOXENV - - ps: ls C:\Python* -install: - - '%PYTHON_HOME%\python -mpip install --progress-bar=off tox -rci/requirements.txt' - - '%PYTHON_HOME%\Scripts\virtualenv --version' - - '%PYTHON_HOME%\Scripts\pip --version' - - '%PYTHON_HOME%\Scripts\tox --version' -test_script: - - %PYTHON_HOME%\Scripts\tox -on_failure: - - ps: dir "env:" - - ps: get-content .tox\*\log\* - -### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker): -# on_finish: -# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..73fd9ea --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,26 @@ +name: "Documentation build check" +on: + pull_request: + branches: + - "*" + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: "recursive" + - uses: actions/setup-python@v1 + with: + python-version: "3.7" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox virtualenv + - name: Build docs + run: tox -e docs + - uses: actions/upload-artifact@v1 + with: + name: DocumentationHTML + path: docs/_build/html/ From 8cd1362a293191476dddab068028c39212235b3d Mon Sep 17 00:00:00 2001 From: Joey LaCava Date: Fri, 15 Oct 2021 03:58:16 -0400 Subject: [PATCH 2/3] add pypi release --- .github/workflows/pypi.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pypi.yml diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..de55e65 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,26 @@ +name: Upload to PyPI + +on: + release: + types: [published] + +jobs: + upload: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: "3.7" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install setuptools wheel twine + - name: Package project + run: python setup.py sdist bdist_wheel + - name: Upload distributions + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + run: twine upload dist/* From 4b1ddb7ec89b866dfdb6c25a8d068a8dd97e1bf0 Mon Sep 17 00:00:00 2001 From: Joey LaCava Date: Fri, 15 Oct 2021 10:03:12 -0400 Subject: [PATCH 3/3] add pypi upload --- .github/workflows/docs.yml | 26 -------------------------- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 73fd9ea..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: "Documentation build check" -on: - pull_request: - branches: - - "*" - -jobs: - docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - submodules: "recursive" - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install tox virtualenv - - name: Build docs - run: tox -e docs - - uses: actions/upload-artifact@v1 - with: - name: DocumentationHTML - path: docs/_build/html/ diff --git a/pyproject.toml b/pyproject.toml index e1d8708..8f5031e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.poetry] -name = "python-component-generator" +name = "component-generator" version = "0.0.0" description = "Generate a backend component quickly." authors = ["Darren Buttigieg "]