Skip to content

Commit

Permalink
Bumped min Python version to 3.8 + updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Sep 15, 2023
1 parent 2450677 commit b0d86c3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (C) 2022 Miðeind ehf.
Copyright (C) 2023 Miðeind ehf.
Original author: Vilhjálmur Þorsteinsson

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

.. image:: https://img.shields.io/badge/License-MIT-yellow.svg
:target: https://opensource.org/licenses/MIT
.. image:: https://img.shields.io/badge/python-3.7-blue.svg
:target: https://www.python.org/downloads/release/python-370/
.. image:: https://img.shields.io/badge/python-3.8-blue.svg
:target: https://www.python.org/downloads/release/python-380/
.. image:: https://img.shields.io/pypi/v/reynir-correct
:target: https://pypi.org/project/reynir-correct/
.. image:: https://shields.io/github/v/release/mideind/GreynirCorrect?display_name=tag
Expand All @@ -18,7 +18,7 @@ GreynirCorrect: Spelling and grammar correction for Icelandic
Overview
********

**GreynirCorrect** is a Python 3 (>= 3.7) package and command line tool for
**GreynirCorrect** is a Python 3 (>= 3.8) package and command line tool for
**checking and correcting spelling and grammar** in Icelandic text.

GreynirCorrect relies on the `Greynir <https://pypi.org/project/reynir/>`__ package,
Expand Down Expand Up @@ -183,7 +183,7 @@ An overview of error codes is available `here <https://github.com/mideind/Greyni
Prerequisites
*************

GreynirCorrect runs on CPython 3.7 or newer, and on PyPy 3.7 or newer. It has
GreynirCorrect runs on CPython 3.8 or newer, and on PyPy 3.8 or newer. It has
been tested on Linux, macOS and Windows. The
`PyPi package <https://pypi.org/project/reynir-correct/>`_
includes binary wheels for common environments, but if the setup on your OS
Expand All @@ -199,7 +199,7 @@ requires compilation from sources, you may need
Installation
************

To install this package (assuming you have Python >= 3.7 with ``pip`` installed):
To install this package (assuming you have Python >= 3.8 with ``pip`` installed):

.. code-block:: bash
Expand Down Expand Up @@ -397,7 +397,7 @@ Copyright and License
:align: right
:alt: Miðeind ehf.

**Copyright © 2022 Miðeind ehf.**
**Copyright © 2023 Miðeind ehf.**

GreynirCorrect's original author is *Vilhjálmur Þorsteinsson*.

Expand Down
2 changes: 1 addition & 1 deletion doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Installation
Prerequisites
-------------

GreynirCorrect runs on **CPython 3.7** or newer, and on **PyPy 3.7**
GreynirCorrect runs on **CPython 3.8** or newer, and on **PyPy 3.8**
or newer (more info on PyPy `here <http://pypy.org/>`_).

On GNU/Linux and similar systems, you may need to have ``python3-dev``
Expand Down
17 changes: 6 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Setup.py
Copyright (C) 2022 Miðeind ehf.
Copyright (C) 2023 Miðeind ehf.
Original author: Vilhjálmur Þorsteinsson
This software is licensed under the MIT License:
Expand Down Expand Up @@ -32,7 +32,7 @@
This module sets up the GreynirCorrect package and installs the
'correct' command-line utility.
This package requires Python >= 3.7, and supports PyPy >= 3.7.
This package requires Python >= 3.8, and supports PyPy >= 3.8.
"""

Expand All @@ -47,16 +47,14 @@
from setuptools import setup # type: ignore


if sys.version_info < (3, 7):
print("GreynirCorrect requires Python >= 3.7")
if sys.version_info < (3, 8):
print("GreynirCorrect requires Python >= 3.8")
sys.exit(1)


def read(*names: str, **kwargs: str):
try:
return io.open(
join(dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")
).read()
return io.open(join(dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")).read()
except (IOError, OSError):
return ""

Expand All @@ -71,9 +69,7 @@ def read(*names: str, **kwargs: str):
license="MIT",
description="A spelling and grammar corrector for Icelandic",
long_description="{0}\n{1}".format(
re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub(
"", read("README.rst")
),
re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub("", read("README.rst")),
re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")),
),
author="Miðeind ehf",
Expand All @@ -98,7 +94,6 @@ def read(*names: str, **kwargs: str):
"Natural Language :: Icelandic",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down

0 comments on commit b0d86c3

Please sign in to comment.