Skip to content

Commit

Permalink
Support more Python versions (#4)
Browse files Browse the repository at this point in the history
* test up to py3.12

* drop py3.8 as it's nearly eol

* bump package versions

* Fix removed numpy NaN

* update py version in readme
  • Loading branch information
freddyheppell authored Jul 2, 2024
1 parent 4ad44e2 commit 94cf7a7
Show file tree
Hide file tree
Showing 6 changed files with 484 additions and 211 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry==1.8.3
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.9"
cache: "poetry"
- name: Install Python dependencies
run: poetry install --no-interaction --no-root
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry==1.8.3
- name: Set up Python 3.8
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install Python dependencies
run: poetry install --no-interaction --no-root
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ If you use this tool in published work, please cite [our EMNLP paper](https://ac
WordPress Site Extractor is currently not available from PyPI, but can instead be installed from a prebuilt wheel.

1. Go to the [latest release](https://github.com/GateNLP/wordpress-site-extractor/releases/latest) and download the `.whl` file
2. Create a new Python 3.8 virtual environment
2. Create a new Python 3.9 or greater virtual environment
3. Install the package with `pip install /path/to/wp_site_extractor-x.y.z-py3-none-any.whl`
4. Run with the `wpextract` command

### Installing Development Environment

**Prerequisites**:

- Python 3.8
- Python 3.9 or greater
- [Poetry](https://python-poetry.org/)

1. Clone the repository
Expand Down
Loading

0 comments on commit 94cf7a7

Please sign in to comment.