Skip to content

Commit 0f4b692

Browse files
committed
Merge branch 'py3_13' into 'master'
PyTiger 2.0.0 See merge request tcl/pytiger!3
2 parents 85be247 + 8cfeecd commit 0f4b692

28 files changed

+79
-953
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,10 @@ stages:
66
.build_template: &build_template
77
stage: build
88
script:
9-
- pip install -r requirements.txt
109
- pip install coverage flake8 mock pytest pytest-cov
1110
# - python3 setup.py check -mrs
1211
- flake8 src/pytiger
13-
- pytest --cov pytiger src/pytiger
14-
15-
build-py2.7:
16-
<<: *build_template
17-
image: python:2.7
18-
19-
build-py3.4:
20-
<<: *build_template
21-
image: python:3.4
22-
23-
build-py3.5:
24-
<<: *build_template
25-
image: python:3.5
12+
- pytest
2613

2714
build-py3.6:
2815
<<: *build_template
@@ -52,11 +39,14 @@ build-py3.12:
5239
<<: *build_template
5340
image: python:3.12
5441

42+
build-py3.13:
43+
<<: *build_template
44+
image: python:3.13
45+
5546
pages:
5647
stage: build
57-
image: python:3.12
48+
image: python:3.13
5849
script:
59-
- pip install -r requirements.txt
6050
- pip install sphinx
6151
- sphinx-build docs public
6252
artifacts:
@@ -105,13 +95,11 @@ rpm-source:
10595
before_script:
10696
- yum -y install
10797
epel-release
108-
${rpm_scl:+centos-release-scl}
10998
# https://wiki.rockylinux.org/rocky/repo/#notes-on-crb
11099
- /usr/bin/crb enable || true
111100
- yum -y install
112101
epel-rpm-macros
113102
rpm-build
114-
${rpm_scl:+${rpm_scl}-build}
115103
- |
116104
yum -y install $( \
117105
rpmbuild --rebuild *.src.rpm 2>&1 | \
@@ -127,16 +115,6 @@ rpm-source:
127115
paths:
128116
- "*.rpm"
129117

130-
epel-7-x86_64:
131-
extends: .rpm-binary-template
132-
image: centos:7
133-
134-
epel-7-sclpy36-x86_64:
135-
extends: .rpm-binary-template
136-
image: centos:7
137-
variables:
138-
rpm_scl: rh-python36
139-
140118
el-8-x86_64:
141119
extends: .rpm-binary-template
142120
image: rockylinux:8

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# pytiger
22

3-
[![Build Status](https://travis-ci.org/tigercomputing/pytiger.svg?branch=master)](https://travis-ci.org/tigercomputing/pytiger)
43
[![Documentation Status](https://readthedocs.org/projects/pytiger/badge/?version=latest)](http://pytiger.readthedocs.io/en/latest/?badge=latest)
5-
[![Coverage Status](https://coveralls.io/repos/github/tigercomputing/pytiger/badge.svg?branch=master)](https://coveralls.io/github/tigercomputing/pytiger?branch=master)
64

75
pytiger is the Tiger Computing Ltd python utility library.
86

TODO

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/building.rst

Lines changed: 4 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,8 @@ Debian
99
======
1010

1111
Use standard build mechanisms such as ``dpkg-buildpackage``, ``debuild``,
12-
``pbuilder`` or whatever works for you. The ``debian/`` directory is intended
13-
to track the current release of Debian at the time of the release of PyTiger.
14-
At the time of writing, this is
15-
`Debian 10 (buster) <https://www.debian.org/releases/stable/>`_.
16-
17-
For example:
18-
19-
.. code-block:: console
20-
21-
$ debuild -us -uc
22-
[...]
23-
dpkg-genchanges: including full source code in upload
24-
dpkg-source --after-build pytiger
25-
dpkg-buildpackage: full upload; Debian-native package (full source is included)
26-
Now running lintian...
27-
Finished running lintian.
12+
``pbuilder`` or whatever works for you. The ``debian/`` directory is available
13+
in branches prefixed ``debian/`` in Git.
2814

2915
We strongly recommend using ``pbuilder`` or ``sbuild`` or similar mechanisms in
3016
order that packages are built in a clean, reproducible environment so that no
@@ -37,107 +23,10 @@ Red Hat & CentOS
3723
Packages targeting the "native" python versions for Red Hat or CentOS can be
3824
built using standard tools such as ``rpmbuild`` or `Mock
3925
<https://github.com/rpm-software-management/mock/wiki>`_ with no specific
40-
configuration. The supplied spec file will generate:
41-
42-
* on Red Hat / CentOS 6.x:
43-
44-
* ``python2-pytiger`` for Python 2.6
45-
46-
* on Red Hat / CentOS 7.x:
47-
48-
* ``python2-pytiger`` for Python 2.7
49-
* ``python34-pytiger`` for Python 3.4
50-
51-
For example:
52-
53-
.. code-block:: console
54-
55-
$ rpmbuild -bs pytiger.spec
56-
Wrote: /path/to/rpmbuild/SRPMS/pytiger-1.1.0-1.el7.centos.src.rpm
57-
$ mock -r epel-7-x86_64 --rebuild /path/to/rpmbuild/SRPMS/pytiger-1.1.0-1.el7.centos.src.rpm
58-
[...]
59-
Finish: rpmbuild pytiger-1.1.0-1.el7.centos.src.rpm
60-
Finish: build phase for pytiger-1.1.0-1.el7.centos.src.rpm
61-
INFO: Done(/path/to/rpmbuild/SRPMS/pytiger-1.1.0-1.el7.centos.src.rpm) Config(epel-7-x86_64) 3 minutes 4 seconds
62-
INFO: Results and/or logs in: /var/lib/mock/epel-7-x86_64/result
63-
Finish: run
26+
configuration. The supplied spec file will generate the ``python3-pytiger``
27+
RPM.
6428

6529
We strongly recommend using ``mock`` or similar mechanisms in order that
6630
packages are built in a clean, reproducible environment so that no unexpected
6731
dependencies are pulled in and to avoid having to install all build
6832
dependencies on your build systems.
69-
70-
In addition, the same spec file can be used to build RPM packages for Python
71-
versions packaged in `Software Collections
72-
<https://www.softwarecollections.org>`_, but this requires specially prepared
73-
chroots that have the SCL Python packages included in them. The `Red Hat Blog
74-
<http://developers.redhat.com/blog/>`_ has `some instructions about this
75-
<http://developers.redhat.com/blog/2015/01/07/using-mock-to-build-python27-software-collections-packages-for-rhel6/>`_
76-
covering SCL Python 2.7 on CentOS 6. Once you have a specially prepared chroot
77-
for the SCL Python version you require, just build the package in that chroot
78-
using the usual mock commands.
79-
80-
The following configurations are supported:
81-
82-
* on Red Hat / CentOS 6.x:
83-
84-
* SCL Python 2.7, creating ``python27-pytiger`` (``sclpy27``)
85-
* SCL Python 3.4, creating ``rh-python34-pytiger`` (``sclpy34``)
86-
87-
The mock configurations we use for these are:
88-
89-
For CentOS 6 with SCL Python 2.7 (``sclpy27``):
90-
91-
.. code-block:: diff
92-
93-
--- epel-6-x86_64.cfg 2016-09-13 10:10:00.000000000 +0100
94-
+++ epel-6-sclpy27-x86_64.cfg 2016-10-11 16:03:41.470227420 +0100
95-
@@ -1,7 +1,7 @@
96-
-config_opts['root'] = 'epel-6-x86_64'
97-
+config_opts['root'] = 'epel-6-sclpy27-x86_64'
98-
config_opts['target_arch'] = 'x86_64'
99-
config_opts['legal_host_arches'] = ('x86_64',)
100-
-config_opts['chroot_setup_cmd'] = 'install @buildsys-build'
101-
+config_opts['chroot_setup_cmd'] = 'install @buildsys-build scl-utils-build python27-build'
102-
config_opts['dist'] = 'el6' # only useful for --resultdir variable subst
103-
# beware RHEL use 6Server or 6Client
104-
config_opts['releasever'] = '6'
105-
@@ -61,4 +61,10 @@
106-
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-6&arch=x86_64
107-
failovermethod=priority
108-
enabled=0
109-
+
110-
+[python27scl]
111-
+name=Python27 - epel-6-x86_64
112-
+baseurl=https://www.softwarecollections.org/repos/rhscl/python27/epel-6-x86_64
113-
+enabled=1
114-
+gpgcheck=0
115-
"""
116-
117-
For CentOS 6 with SCL Python 3.4 (``sclpy34``):
118-
119-
.. code-block:: diff
120-
121-
--- epel-6-x86_64.cfg 2016-09-13 10:10:00.000000000 +0100
122-
+++ epel-6-sclpy34-x86_64.cfg 2016-11-14 16:50:34.543356289 +0000
123-
@@ -1,7 +1,7 @@
124-
-config_opts['root'] = 'epel-6-x86_64'
125-
+config_opts['root'] = 'epel-6-sclpy34-x86_64'
126-
config_opts['target_arch'] = 'x86_64'
127-
config_opts['legal_host_arches'] = ('x86_64',)
128-
-config_opts['chroot_setup_cmd'] = 'install @buildsys-build'
129-
+config_opts['chroot_setup_cmd'] = 'install @buildsys-build scl-utils-build rh-python34-build'
130-
config_opts['dist'] = 'el6' # only useful for --resultdir variable subst
131-
# beware RHEL use 6Server or 6Client
132-
config_opts['releasever'] = '6'
133-
@@ -61,4 +61,10 @@
134-
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-6&arch=x86_64
135-
failovermethod=priority
136-
enabled=0
137-
+
138-
+[python34scl]
139-
+name=Python34 - epel-6-x86_64
140-
+baseurl=https://www.softwarecollections.org/repos/rhscl/rh-python34/epel-6-x86_64
141-
+enabled=1
142-
+gpgcheck=0
143-
"""

docs/changes.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
Changes in pytiger
33
******************
44

5+
Release 2.0.0
6+
=============
7+
8+
* Drop Python 2 compatibility. The minimum supported Python version is now
9+
3.6.
10+
* Remove all CentOS 7 packages, including SCL.
11+
* Remove deprecated :mod:`pytiger.logging.legacy` module.
12+
* Remove deprecated :mod:`pytiger.nagios` module.
13+
* Remove deprecated :func:`pytiger.monitoring.MonitoringCheck.warn` method.
14+
* Fix :mod:`pytiger.logging.config` Python 3.13 compatibility.
15+
516
Release 1.2.2
617
=============
718

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@
4949

5050
# General information about the project.
5151
project = u'pytiger'
52-
copyright = u'2015-2018, Tiger Computing Ltd'
52+
copyright = u'2015-2025, Tiger Computing Ltd'
5353

5454
# The version info for the project you're documenting, acts as replacement for
5555
# |version| and |release|, also used in various other places throughout the
5656
# built documents.
5757
#
5858
# The short X.Y version.
59-
version = '1.2'
59+
version = '2.0'
6060
# The full version, including alpha/beta/rc tags.
61-
release = '1.2.2'
61+
release = '2.0.0'
6262

6363
# The language for content autogenerated by Sphinx. Refer to documentation
6464
# for a list of supported languages.
@@ -202,7 +202,7 @@
202202
# author, documentclass [howto, manual, or own class]).
203203
latex_documents = [
204204
('index', 'pytiger.tex', u'pytiger Documentation',
205-
u'Jonathan Wiltshire', 'manual'),
205+
u'Tiger Computing Ltd', 'manual'),
206206
]
207207

208208
# The name of an image file (relative to this directory) to place at the top of

docs/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Contributions to pytiger are welcome, but should follow some guidelines.
77
Python Interpreter Version
88
==========================
99

10-
Python code should be backward-compatible to version 2.7 of the Python
10+
Python code should be backward-compatible to version 3.6 of the Python
1111
interpreter. This is subject to change as the major distributions we
1212
support change.
1313

docs/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Contents:
1414
introduction
1515
logging
1616
monitoring
17-
nagios
1817
utils
1918

2019
contributing

docs/logging.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,3 @@ Logging
1717
.. automodule:: pytiger.logging.syslog
1818
:synopsis: Syslog logging handler for Python logging framework
1919
:members:
20-
21-
:mod:`pytiger.logging.legacy` -- Legacy logging module
22-
======================================================
23-
24-
.. automodule:: pytiger.logging.legacy
25-
:synopsis: Legacy logging utilities
26-
:deprecated:
27-
28-
.. autoclass:: LegacySyslogger
29-
30-
.. autoattribute:: log_level
31-
.. autoattribute:: log_to_stdout
32-
.. autoattribute:: log_to_syslog
33-
34-
.. automethod:: log
35-
.. automethod:: debug
36-
.. automethod:: error
37-
.. automethod:: info
38-
.. automethod:: warning

0 commit comments

Comments
 (0)