|
| 1 | +From faecb7aa77c9078f504935c75ea07ead6ae26768 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Abhisit Sangjan <3991182+abhisit@users.noreply.github.com> |
| 3 | +Date: Fri, 12 Jul 2024 08:17:59 +0700 |
| 4 | +Subject: [PATCH] Tag v1.0.1 to release it |
| 5 | + |
| 6 | +- ROBOT_AUTO_KEYWORDS = False |
| 7 | +- Be fail if Ruff has reported error |
| 8 | +--- |
| 9 | + .github/workflows/python-package.yml | 46 +++++++++++++++++ |
| 10 | + .../python-release-by-tag-creation.yml | 49 +++++++++++++++++++ |
| 11 | + pyproject.toml | 2 +- |
| 12 | + setup.py | 1 - |
| 13 | + src/PlainTextTerminal/PlainTextTerminal.py | 1 + |
| 14 | + src/PlainTextTerminal/__init__.py | 4 +- |
| 15 | + 6 files changed, 100 insertions(+), 3 deletions(-) |
| 16 | + create mode 100644 .github/workflows/python-package.yml |
| 17 | + create mode 100644 .github/workflows/python-release-by-tag-creation.yml |
| 18 | + |
| 19 | +diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml |
| 20 | +new file mode 100644 |
| 21 | +index 0000000..afb627b |
| 22 | +--- /dev/null |
| 23 | ++++ b/.github/workflows/python-package.yml |
| 24 | +@@ -0,0 +1,46 @@ |
| 25 | ++# This workflow will install Python dependencies, run tests and lint with a variety of Python versions |
| 26 | ++# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python |
| 27 | ++ |
| 28 | ++name: Python package |
| 29 | ++ |
| 30 | ++on: |
| 31 | ++ push: |
| 32 | ++ branches: [ "main" ] |
| 33 | ++ pull_request: |
| 34 | ++ branches: [ "main" ] |
| 35 | ++ |
| 36 | ++jobs: |
| 37 | ++ build: |
| 38 | ++ |
| 39 | ++ runs-on: ${{ matrix.os }} |
| 40 | ++ strategy: |
| 41 | ++ fail-fast: false |
| 42 | ++ matrix: |
| 43 | ++ os: [ubuntu-latest, windows-latest, macos-latest] |
| 44 | ++ python-version: ["3.10", "3.11"] |
| 45 | ++ |
| 46 | ++ steps: |
| 47 | ++ - uses: actions/checkout@v4 |
| 48 | ++ - name: Set up Python ${{ matrix.python-version }} |
| 49 | ++ uses: actions/setup-python@v3 |
| 50 | ++ with: |
| 51 | ++ python-version: ${{ matrix.python-version }} |
| 52 | ++ - name: Install Python dependencies |
| 53 | ++ run: | |
| 54 | ++ python -m pip install --upgrade pip |
| 55 | ++ python -m pip install -r requirements.txt |
| 56 | ++ - name: Lint with Ruff |
| 57 | ++ run: | |
| 58 | ++ python -m pip install ruff |
| 59 | ++ ruff check --output-format=github . |
| 60 | ++ continue-on-error: false |
| 61 | ++ - name: Build Dist Wheels |
| 62 | ++ run: | |
| 63 | ++ mkdir -p ${{ github.workspace }}/artifacts |
| 64 | ++ python setup.py bdist_wheel |
| 65 | ++ mv dist/* ${{ github.workspace }}/artifacts/ |
| 66 | ++ - name: Archive Build Artifacts |
| 67 | ++ uses: actions/upload-artifact@v4 |
| 68 | ++ with: |
| 69 | ++ name: PlainTextTerminal-${{ matrix.python-version }}-${{ matrix.os }} |
| 70 | ++ path: ${{ github.workspace }}/artifacts/*.whl |
| 71 | +\ No newline at end of file |
| 72 | +diff --git a/.github/workflows/python-release-by-tag-creation.yml b/.github/workflows/python-release-by-tag-creation.yml |
| 73 | +new file mode 100644 |
| 74 | +index 0000000..387eb21 |
| 75 | +--- /dev/null |
| 76 | ++++ b/.github/workflows/python-release-by-tag-creation.yml |
| 77 | +@@ -0,0 +1,49 @@ |
| 78 | ++# This workflow will install Python dependencies, run tests and lint with a variety of Python versions |
| 79 | ++# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python |
| 80 | ++ |
| 81 | ++name: Python Release |
| 82 | ++ |
| 83 | ++on: |
| 84 | ++ push: |
| 85 | ++ tags: |
| 86 | ++ - "v*" |
| 87 | ++ |
| 88 | ++jobs: |
| 89 | ++ build: |
| 90 | ++ |
| 91 | ++ runs-on: ${{ matrix.os }} |
| 92 | ++ permissions: |
| 93 | ++ contents: write |
| 94 | ++ strategy: |
| 95 | ++ fail-fast: false |
| 96 | ++ matrix: |
| 97 | ++ os: [ubuntu-22.04] |
| 98 | ++ python-version: ["3.10"] |
| 99 | ++ |
| 100 | ++ steps: |
| 101 | ++ - uses: actions/checkout@v4 |
| 102 | ++ - name: Set up Python ${{ matrix.python-version }} |
| 103 | ++ uses: actions/setup-python@v3 |
| 104 | ++ with: |
| 105 | ++ python-version: ${{ matrix.python-version }} |
| 106 | ++ - name: Install Python dependencies |
| 107 | ++ run: | |
| 108 | ++ python -m pip install --upgrade pip |
| 109 | ++ python -m pip install -r requirements.txt |
| 110 | ++ - name: Lint with Ruff |
| 111 | ++ run: | |
| 112 | ++ python -m pip install ruff |
| 113 | ++ ruff check --output-format=github . |
| 114 | ++ continue-on-error: false |
| 115 | ++ - name: Build Dist Wheel |
| 116 | ++ run: | |
| 117 | ++ mkdir -p ${{ github.workspace }}/artifact |
| 118 | ++ python setup.py bdist_wheel |
| 119 | ++ mv dist/* ${{ github.workspace }}/artifact/ |
| 120 | ++ - name: Public Wheel |
| 121 | ++ uses: softprops/action-gh-release@v2 |
| 122 | ++ with: |
| 123 | ++ draft: true |
| 124 | ++ prerelease: false |
| 125 | ++ files: "${{ github.workspace }}/artifact/*.whl" |
| 126 | ++ fail_on_unmatched_files: true |
| 127 | +\ No newline at end of file |
| 128 | +diff --git a/pyproject.toml b/pyproject.toml |
| 129 | +index c34ff22..a7bd120 100644 |
| 130 | +--- a/pyproject.toml |
| 131 | ++++ b/pyproject.toml |
| 132 | +@@ -1,5 +1,5 @@ |
| 133 | + [build-system] |
| 134 | +-requires = ["robotframework>=7.0.1", "robotframework-sshlibrary>=3.8.0", "robotframework-tidy>=4.13.0"] |
| 135 | ++requires = ["robotframework>=7.0.1", "robotframework-sshlibrary>=3.8.0"] |
| 136 | + build-backend = "flit_core.buildapi" |
| 137 | + |
| 138 | + [tool.flit.metadata] |
| 139 | +diff --git a/setup.py b/setup.py |
| 140 | +index 39f49f2..4c4577b 100644 |
| 141 | +--- a/setup.py |
| 142 | ++++ b/setup.py |
| 143 | +@@ -78,7 +78,6 @@ setup( |
| 144 | + install_requires=[ |
| 145 | + "robotframework>=7.0.1", |
| 146 | + "robotframework-sshlibrary>=3.8.0", |
| 147 | +- "robotframework-tidy>=4.13.0", |
| 148 | + ], |
| 149 | + keywords="robotframework terminal testing telnet ssh", |
| 150 | + python_requires=">=3.10.12", |
| 151 | +diff --git a/src/PlainTextTerminal/PlainTextTerminal.py b/src/PlainTextTerminal/PlainTextTerminal.py |
| 152 | +index f046088..05e9076 100644 |
| 153 | +--- a/src/PlainTextTerminal/PlainTextTerminal.py |
| 154 | ++++ b/src/PlainTextTerminal/PlainTextTerminal.py |
| 155 | +@@ -49,6 +49,7 @@ class PlainTextTerminal: |
| 156 | + |
| 157 | + ROBOT_LIBRARY_SCOPE = "SUITE" |
| 158 | + ROBOT_LIBRARY_VERSION = get_version() |
| 159 | ++ ROBOT_AUTO_KEYWORDS = False |
| 160 | + |
| 161 | + _terminal = None |
| 162 | + |
| 163 | +diff --git a/src/PlainTextTerminal/__init__.py b/src/PlainTextTerminal/__init__.py |
| 164 | +index cf5faa3..89b0c4b 100644 |
| 165 | +--- a/src/PlainTextTerminal/__init__.py |
| 166 | ++++ b/src/PlainTextTerminal/__init__.py |
| 167 | +@@ -17,6 +17,8 @@ |
| 168 | + |
| 169 | + from .PlainTextTerminal import PlainTextTerminal |
| 170 | + |
| 171 | +-__version__ = "1.0.0" |
| 172 | ++__version__ = "1.0.1" |
| 173 | + |
| 174 | + VERSION = __version__ |
| 175 | ++ |
| 176 | ++__all__ = ["PlainTextTerminal"] |
| 177 | +-- |
| 178 | +2.45.2 |
| 179 | + |
0 commit comments