Merge pull request #366 from collective/maurits-require-python38

Require Python 3.8.
pull/378/head
Maurits van Rees 2022-08-15 09:34:43 +02:00 zatwierdzone przez GitHub
commit f2717a4b85
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
5 zmienionych plików z 12 dodań i 15 usunięć

Wyświetl plik

@ -14,13 +14,10 @@ jobs:
matrix: matrix:
config: config:
# [Python version, tox env] # [Python version, tox env]
- ["2.7", "py27"]
- ["3.6", "py36"]
- ["3.7", "py37"]
- ["3.8", "py38"] - ["3.8", "py38"]
- ["3.9", "py39"] - ["3.9", "py39"]
- ["3.10", "py310"] - ["3.10", "py310"]
- ["pypy3", "pypy3"] - ["pypy-3.9", "pypy3"]
- ["3.10", "docs"] - ["3.10", "docs"]
- ["3.11.0-rc.1", "py311"] - ["3.11.0-rc.1", "py311"]
@ -47,7 +44,6 @@ jobs:
- name: Test - name: Test
run: tox -e ${{ matrix.config[1] }} run: tox -e ${{ matrix.config[1] }}
- name: Coverage - name: Coverage
if: matrix.config[0] != '2.7'
run: | run: |
pip install coveralls coverage-python-version pip install coveralls coverage-python-version
coveralls --service=github coveralls --service=github

Wyświetl plik

@ -5,6 +5,10 @@ Changelog
5.0.0a2 (unreleased) 5.0.0a2 (unreleased)
-------------------- --------------------
Breaking changes:
- Require Python 3.8 as minimum Python version. [maurits]
Bug fixes: Bug fixes:
- Changed tools.UIDGenerator instance methods to static methods - Changed tools.UIDGenerator instance methods to static methods

Wyświetl plik

@ -45,7 +45,8 @@ clean:
html: html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo @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
manual: *.rst manual: *.rst
$(SPHINXBUILD) -b html -t manual . manual $(SPHINXBUILD) -b html -t manual . manual

Wyświetl plik

@ -36,11 +36,6 @@ setuptools.setup(
'License :: OSI Approved :: BSD License', 'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent', 'Operating System :: OS Independent',
'Programming Language :: Python', '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.8',
'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.10',
@ -57,7 +52,7 @@ setuptools.setup(
package_dir={'': 'src'}, package_dir={'': 'src'},
include_package_data=True, include_package_data=True,
zip_safe=False, zip_safe=False,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", python_requires=">=3.8",
install_requires=install_requires, install_requires=install_requires,
entry_points = {'console_scripts': ['icalendar = icalendar.cli:main']}, entry_points = {'console_scripts': ['icalendar = icalendar.cli:main']},
extras_require={ extras_require={

Wyświetl plik

@ -1,16 +1,17 @@
# to run for a specific environment, use ``tox -e ENVNAME`` # to run for a specific environment, use ``tox -e ENVNAME``
[tox] [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
[testenv] [testenv]
usedevelop=True usedevelop=True
deps = deps =
pytest pytest
coverage coverage
py{27}: hypothesis>=3.0
commands = commands =
coverage run --source=src/icalendar --omit=*/tests/* --module pytest [] 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 report
coverage html coverage html