Skip to content

Commit

Permalink
Updated for Python 3.13.
Browse files Browse the repository at this point in the history
<time.h> now needs to be included explicitly because Python.h no longer includes it.
  • Loading branch information
Matthew Barnett committed May 10, 2024
1 parent 2e3272b commit be139ff
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
PYTHON_VER: '3.10' # Python to run test/cibuildwheel
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-* cp313-*
CIBW_TEST_COMMAND: python -m unittest regex.test_regex

jobs:
Expand Down
1 change: 1 addition & 0 deletions regex_3/_regex.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include "Python.h"
#include "structmember.h" /* offsetof */
#include <ctype.h>
#include <time.h>
#include "_regex.h"
#include "pyport.h"
#include "pythread.h"
Expand Down
2 changes: 1 addition & 1 deletion regex_3/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
"VERSION1", "X", "VERBOSE", "W", "WORD", "error", "Regex", "__version__",
"__doc__", "RegexFlag"]

__version__ = "2.5.142"
__version__ = "2.5.144"

# --------------------------------------------------------------------
# Public interface.
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup, Extension
from os.path import join

Expand All @@ -7,7 +8,7 @@

setup(
name='regex',
version='2024.4.28',
version='2024.5.10',
description='Alternative regular expression module, to replace re.',
long_description=long_description,
long_description_content_type='text/x-rst',
Expand All @@ -26,6 +27,7 @@
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing',
Expand Down
2 changes: 1 addition & 1 deletion tools/build_regex_unicode.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! python3.11
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This Python script parses the Unicode data files in the UCD.zip file and
Expand Down

0 comments on commit be139ff

Please sign in to comment.