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

Require Python 3.8. #366

Merged
merged 4 commits into from
Aug 15, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ jobs:
matrix:
config:
# [Python version, tox env]
- ["2.7", "py27"]
- ["3.6", "py36"]
- ["3.7", "py37"]
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["pypy3", "pypy3"]
- ["pypy-3.9", "pypy3"]
- ["3.10", "docs"]

runs-on: ubuntu-latest
Expand All @@ -46,7 +43,6 @@ jobs:
- name: Test
run: tox -e ${{ matrix.config[1] }}
- name: Coverage
if: matrix.config[0] != '2.7'
run: |
pip install coveralls coverage-python-version
coveralls --service=github
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Changelog
5.0.0a2 (unreleased)
--------------------

Breaking changes:

- Require Python 3.8 as minimum Python version. [maurits]

Bug fixes:

- Changed tools.UIDGenerator instance methods to static methods
Expand Down
3 changes: 2 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ clean:
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
@echo "Build finished. The HTML pages are in docs/$(BUILDDIR)/html."
rm -rf build
mauritsvanrees marked this conversation as resolved.
Show resolved Hide resolved

manual: *.rst
$(SPHINXBUILD) -b html -t manual . manual
Expand Down
7 changes: 1 addition & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
Expand All @@ -57,7 +52,7 @@
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
python_requires=">=3.8",
install_requires=install_requires,
entry_points = {'console_scripts': ['icalendar = icalendar.cli:main']},
extras_require={
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# to run for a specific environment, use ``tox -e ENVNAME``
[tox]
envlist = py27,py37,py38,py39,py310,pypy3,docs
envlist = py38,py39,py310,pypy3,docs
# Note: the 'docs' env creates a 'build' directory which may interfere in strange ways
# with the other environments. You might see this when you run the tests in parallel.
# See https://github.com/collective/icalendar/pull/359#issuecomment-1214150269
mauritsvanrees marked this conversation as resolved.
Show resolved Hide resolved

[testenv]
usedevelop=True
deps =
pytest
coverage
py{27}: hypothesis>=3.0
commands =
coverage run --source=src/icalendar --omit=*/tests/* --module pytest []
py{27}: coverage run --append --source=src/icalendar --omit=*/tests/* --module pytest [] src/icalendar/tests/hypothesis/
coverage report
coverage html

Expand Down