Changeset - 3c69231d7781
[Not reviewed]
0 7 0
Branko Majic (branko) - 3 years ago 2020-11-05 00:05:45
branko@majic.rs
GC-39: Added support for Python 3.9:

- Updated release notes
- Updated functional test for changes in help output in Python 3.9.
- Updated comments on public signing keys used for validating the
Python archives when using Vagrant provisioning.
- Updated supported Python versions in package configuration file.
- Updated Python versions used for tests.
7 files changed with 19 insertions and 5 deletions:
0 comments (0 inline, 0 general)
README.rst
Show inline comments
 
@@ -33,6 +33,7 @@ Python versions:
 
- *Python 3.6*
 
- *Python 3.7*
 
- *Python 3.8*
 
- *Python 3.8*
 

	
 

	
 
Why was this tool created?
docs/releasenotes.rst
Show inline comments
 
@@ -5,10 +5,14 @@ Release notes
 
NEXT RELEASE
 
------------
 

	
 
This release adds support for Python 3.9, and updates the package
 
requirements.
 

	
 
Resolved issues:
 

	
 
- **Tasks**:
 

	
 
  - `GC-39: Support for Python 3.9 <https://projects.majic.rs/gimmecert/issues/GC-39>`_
 
  - `GC-40: Update all requirements <https://projects.majic.rs/gimmecert/issues/GC-40>`_
 

	
 

	
functional_tests/test_server.py
Show inline comments
 
@@ -18,6 +18,7 @@
 
# Gimmecert.  If not, see <http://www.gnu.org/licenses/>.
 
#
 

	
 
import sys
 

	
 
from .base import run_command
 

	
 
@@ -42,7 +43,12 @@ def test_server_command_available_with_help():
 
    assert exit_code == 0
 
    assert stderr == ""
 
    assert stdout.startswith("usage: gimmecert server")
 
    assert " entity_name [dns_name [dns_name ...]]" in stdout
 
    # Help output for nargs="*" got changed in Python 3.9. See
 
    # https://bugs.python.org/issue38438 for details.
 
    if sys.version_info.major == 3 and sys.version_info.minor < 9:
 
        assert " entity_name [dns_name [dns_name ...]]" in stdout
 
    else:
 
        assert " entity_name [dns_name ...]" in stdout
 

	
 

	
 
def test_server_command_requires_initialised_hierarchy(tmpdir):
provision.sh
Show inline comments
 
@@ -27,7 +27,7 @@ apt-get install -qq -y make build-essential libssl1.0-dev zlib1g-dev libbz2-dev
 
sudo -i -u vagrant gpg -q --import /vagrant/provision/python_releases_signing_keys.pub
 

	
 
# Download and build additional Python versions.
 
python_versions=("3.5.9" "3.6.10" "3.7.7" "3.8.2")
 
python_versions=("3.5.10" "3.6.12" "3.7.9" "3.8.6" "3.9.0")
 
work_directory="/home/vagrant/src"
 

	
 
echo "Setting-up work directory."
provision/python_releases_signing_keys.pub
Show inline comments
 
# Python 3.5, 3.6, and 3.7 archive signing key
 
-----BEGIN PGP PUBLIC KEY BLOCK-----
 

	
 
mQENBE0yGHgBCAClbIKFESe6Ae/wJv4c50K2C5BnyAVIbNObvl/maM7X0sTpi9cv
 
@@ -7714,7 +7715,7 @@ MnpJ5Se/0KVUMawISF8Rl806c6gPMkbEN8RKgDDuKH3W8iFPIcewrzenYcsMws+m
 
=erwG
 
-----END PGP PUBLIC KEY BLOCK-----
 

	
 
# Python 3.8 archive signing key
 
# Python 3.8 and 3.9 archive signing key
 
-----BEGIN PGP PUBLIC KEY BLOCK-----
 

	
 
mQINBFVRJ0kBEACko4KHmTBm01lcf4IsN4QxglIuf51lYqHs9B5nQbO6OSUivPXP
setup.py
Show inline comments
 
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
 

	
 
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
 

	
 
python_requirements = ">=3.5,<3.9"
 
python_requirements = ">=3.5,<3.10"
 

	
 
install_requirements = [
 
    'cryptography>=3.2,<3.3',
 
@@ -97,6 +97,7 @@ setup(
 
        'Programming Language :: Python :: 3.6',
 
        'Programming Language :: Python :: 3.7',
 
        'Programming Language :: Python :: 3.8',
 
        'Programming Language :: Python :: 3.9',
 
        'Topic :: Internet :: WWW/HTTP',
 
        'Topic :: Internet :: WWW/HTTP :: Site Management',
 
        'Topic :: Security',
tox.ini
Show inline comments
 
[tox]
 
envlist = {py35,py36,py37,py38},lint,doc
 
envlist = {py35,py36,py37,py38,py39},lint,doc
 

	
 
[testenv]
 
whitelist_externals =
 
@@ -12,6 +12,7 @@ basepython =
 
  py36: python3.6
 
  py37: python3.7
 
  py38: python3.8
 
  py39: python3.9
 

	
 
deps =
 
  .[test]
0 comments (0 inline, 0 general)