Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tool versions #78

Merged
merged 3 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: pre-commit/[email protected].0
- uses: pre-commit/[email protected].1

tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: 3
- python-version: '3.12' # Keep in sync with .readthedocs.yml
env:
TOXENV: docs
- python-version: 3
- python-version: '3.12'
env:
TOXENV: twinecheck
- python-version: 3.8
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
sudo apt-get update
sudo apt-get install libxml2-dev libxslt-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,19 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel twine
pip install --upgrade build twine
- name: Build
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Upload
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload dist/*
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_TOKEN }}
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ repos:
- id: black
language_version: python3
repo: https://github.com/ambv/black
rev: 23.3.0
rev: 24.4.0
- hooks:
- id: isort
language_version: python3
repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
- hooks:
- id: flake8
language_version: python3
Expand All @@ -21,4 +21,4 @@ repos:
- flake8-docstrings
- flake8-string-format
repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
14 changes: 14 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
formats: all
sphinx:
configuration: docs/conf.py

build:
os: ubuntu-22.04
tools:
python: "3.12" # Keep in sync with .github/workflows/main.yml

python:
install:
- requirements: docs/requirements.txt
- path: .
1 change: 1 addition & 0 deletions itemloaders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

See documentation in docs/topics/loaders.rst
"""

from contextlib import suppress

from itemadapter import ItemAdapter
Expand Down
1 change: 1 addition & 0 deletions itemloaders/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

See documentation in docs/topics/loaders.rst
"""

from collections import ChainMap

from itemloaders.common import wrap_loader_context
Expand Down
1 change: 1 addition & 0 deletions itemloaders/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Copy/paste from scrapy source at the moment, to ensure tests are working.
Refactoring to come later
"""

import inspect
from functools import partial
from typing import Generator
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py35,py36,py37,py38,py39,py310
envlist = py38,py39,py310,py311,py312

[testenv]
deps =
Expand Down Expand Up @@ -40,8 +40,8 @@ commands =
[testenv:twinecheck]
basepython = python3
deps =
twine==4.0.2
build==0.10.0
twine==5.0.0
build==1.2.1
commands =
python -m build --sdist
twine check dist/*
Loading