Skip to content

Commit e2c9565

Browse files
authored
Merge pull request #35 from graingert/test-on-3.12
test on python 3.12
2 parents 6981a9d + 1f43176 commit e2c9565

6 files changed

Lines changed: 370 additions & 1837 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
python-version: ['3.8', '3.9', '3.10', '3.11']
46+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
4747

4848
steps:
4949
- uses: actions/checkout@v3
@@ -54,10 +54,13 @@ jobs:
5454
python-version: ${{ matrix.python-version }}
5555
allow-prereleases: true
5656

57+
- name: Test build
58+
run: pipx run --python=python build .
59+
5760
- name: Install dependencies
5861
run: |
5962
openssl version
60-
python -m pip install --upgrade twisted coverage
63+
python -m pip install --upgrade twisted coverage build
6164
6265
- name: Test
6366
run: |
@@ -161,9 +164,8 @@ jobs:
161164

162165
- name: Build
163166
run: |
164-
python -m pip install --upgrade pip wheel pep517
165167
rm -rf dist/*
166-
python setup.py bdist_wheel sdist
168+
pipx run --python=python build .
167169
168170
- name: Files to be pushed to PyPi
169171
run: ls -R dist/

constantly/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
NamedConstant, Names, ValueConstant, Values, FlagConstant, Flags
66
)
77

8-
from ._version import get_versions
9-
__version__ = get_versions()['version']
10-
del get_versions
8+
from . import _version
9+
__version__ = _version.get_versions()['version']
1110

1211
__author__ = "Twisted Matrix Laboratories"
1312
__license__ = "MIT"

0 commit comments

Comments
 (0)