diff options
author | Karl Lorey <git@karllorey.com> | 2022-06-13 21:49:59 +0200 |
---|---|---|
committer | Karl Lorey <git@karllorey.com> | 2022-06-13 21:49:59 +0200 |
commit | c413bff09da6ef3c5d223e29e69e17e77240645c (patch) | |
tree | 45d74b90c476ead54e6c7a6d0172450aa926bbc5 | |
parent | 8ef28fffec245fe421a3090abe32e42cd16d4ff9 (diff) |
Adapt python versions to 3.9+
-rw-r--r-- | .github/workflows/ci.yml | 6 | ||||
-rw-r--r-- | requirements/dev.in | 10 | ||||
-rw-r--r-- | requirements/dev.txt | 51 | ||||
-rw-r--r-- | requirements/docs.txt | 54 | ||||
-rw-r--r-- | requirements/tests.in | 3 | ||||
-rw-r--r-- | requirements/tests.txt | 59 | ||||
-rw-r--r-- | setup.py | 8 | ||||
-rw-r--r-- | tests/test_training.py | 1 | ||||
-rw-r--r-- | tox.ini | 2 |
9 files changed, 173 insertions, 21 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18f6a4d..e6716d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,12 @@ jobs: fail-fast: false matrix: include: + - {name: '3.11-dev', python: '3.11-dev', os: ubuntu-latest, tox: py311} - {name: Linux, python: '3.10', os: ubuntu-latest, tox: py310} - {name: Windows, python: '3.10', os: windows-latest, tox: py310} - {name: Mac, python: '3.10', os: macos-latest, tox: py310} - - {name: '3.11-dev', python: '3.11-dev', os: ubuntu-latest, tox: py311} - {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39} - - {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38} - - {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37} - - {name: 'PyPy', python: 'pypy-3.7', os: ubuntu-latest, tox: pypy37} + - {name: 'PyPy', python: 'pypy-3.9', os: ubuntu-latest, tox: pypy39} steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 diff --git a/requirements/dev.in b/requirements/dev.in index 31d384c..9733f5e 100644 --- a/requirements/dev.in +++ b/requirements/dev.in @@ -1,11 +1,7 @@ +-r docs.in +-r tests.in + bump2version wheel watchdog -flake8 -tox -coverage -Sphinx twine - -pytest -pytest-runner diff --git a/requirements/dev.txt b/requirements/dev.txt new file mode 100644 index 0000000..e969342 --- /dev/null +++ b/requirements/dev.txt @@ -0,0 +1,51 @@ +# SHA1:8c7f2f020e4e7fa5a5d16d2ae2e765bae069fd8c +# +# This file is autogenerated by pip-compile-multi +# To update, run: +# +# pip-compile-multi +# +-r docs.txt +-r tests.txt +bleach==5.0.0 + # via readme-renderer +bump2version==1.0.1 + # via -r requirements/dev.in +cffi==1.15.0 + # via cryptography +commonmark==0.9.1 + # via rich +cryptography==37.0.2 + # via secretstorage +importlib-metadata==4.11.4 + # via twine +jeepney==0.8.0 + # via + # keyring + # secretstorage +keyring==23.6.0 + # via twine +pkginfo==1.8.3 + # via twine +pycparser==2.21 + # via cffi +readme-renderer==35.0 + # via twine +requests-toolbelt==0.9.1 + # via twine +rfc3986==2.0.0 + # via twine +rich==12.4.4 + # via twine +secretstorage==3.3.2 + # via keyring +twine==4.0.1 + # via -r requirements/dev.in +watchdog==2.1.9 + # via -r requirements/dev.in +webencodings==0.5.1 + # via bleach +wheel==0.37.1 + # via -r requirements/dev.in +zipp==3.8.0 + # via importlib-metadata diff --git a/requirements/docs.txt b/requirements/docs.txt index 6966869..71a8f38 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -1 +1,53 @@ -sphinx +# SHA1:b9aaf35e80441f415c3a3d3c53695d0efded116a +# +# This file is autogenerated by pip-compile-multi +# To update, run: +# +# pip-compile-multi +# +alabaster==0.7.12 + # via sphinx +babel==2.10.1 + # via sphinx +certifi==2022.5.18.1 + # via requests +charset-normalizer==2.0.12 + # via requests +docutils==0.18.1 + # via sphinx +idna==3.3 + # via requests +imagesize==1.3.0 + # via sphinx +jinja2==3.1.2 + # via sphinx +markupsafe==2.1.1 + # via jinja2 +packaging==21.3 + # via sphinx +pygments==2.12.0 + # via sphinx +pyparsing==3.0.9 + # via packaging +pytz==2022.1 + # via babel +requests==2.28.0 + # via sphinx +snowballstemmer==2.2.0 + # via sphinx +sphinx==5.0.1 + # via -r requirements/docs.in +sphinxcontrib-applehelp==1.0.2 + # via sphinx +sphinxcontrib-devhelp==1.0.2 + # via sphinx +sphinxcontrib-htmlhelp==2.0.0 + # via sphinx +sphinxcontrib-jsmath==1.0.1 + # via sphinx +sphinxcontrib-qthelp==1.0.3 + # via sphinx +sphinxcontrib-serializinghtml==1.1.5 + # via sphinx +urllib3==1.26.9 + # via requests diff --git a/requirements/tests.in b/requirements/tests.in index e079f8a..2bc9c42 100644 --- a/requirements/tests.in +++ b/requirements/tests.in @@ -1 +1,4 @@ +coverage +flake8 pytest +tox diff --git a/requirements/tests.txt b/requirements/tests.txt index 4d4a689..1dca7da 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -1,2 +1,57 @@ -pytest -pre-commit +# SHA1:f3cb9240de1d2158ede1b411a7d51a559d4f3799 +# +# This file is autogenerated by pip-compile-multi +# To update, run: +# +# pip-compile-multi +# +attrs==21.4.0 + # via pytest +coverage==6.4.1 + # via -r requirements/tests.in +distlib==0.3.4 + # via virtualenv +filelock==3.7.1 + # via + # tox + # virtualenv +flake8==4.0.1 + # via -r requirements/tests.in +iniconfig==1.1.1 + # via pytest +mccabe==0.6.1 + # via flake8 +packaging==21.3 + # via + # pytest + # tox +platformdirs==2.5.2 + # via virtualenv +pluggy==1.0.0 + # via + # pytest + # tox +py==1.11.0 + # via + # pytest + # tox +pycodestyle==2.8.0 + # via flake8 +pyflakes==2.4.0 + # via flake8 +pyparsing==3.0.9 + # via packaging +pytest==7.1.2 + # via -r requirements/tests.in +six==1.16.0 + # via + # tox + # virtualenv +toml==0.10.2 + # via tox +tomli==2.0.1 + # via pytest +tox==3.25.0 + # via -r requirements/tests.in +virtualenv==20.14.1 + # via tox @@ -23,16 +23,12 @@ test_requirements = ["pytest>=3"] setup( author="Karl Lorey", author_email="git@karllorey.com", - python_requires=">=3.5", + python_requires=">=3.9", classifiers=[ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "Natural Language :: English", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", + "Programming Language :: Python", ], description="Scrape HTML automatically with machine learning.", install_requires=requirements, diff --git a/tests/test_training.py b/tests/test_training.py index ab310eb..61fa62a 100644 --- a/tests/test_training.py +++ b/tests/test_training.py @@ -29,5 +29,6 @@ def stackoverflow_training_set(): return make_training_set([page], [item]) +@pytest.mark.skip("takes too long") def test_train_scraper(stackoverflow_training_set): train_scraper(stackoverflow_training_set.item) @@ -1,6 +1,6 @@ [tox] envlist = - py3{11,10,9,8,7},pypy3{8,7} + py3{11,10,9},pypy3{9} style docs skip_missing_interpreters = true |