Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools wheel autopep8
python -m pip install -U build setuptools wheel autopep8
python -m pip install -U -r requirements.txt
- name: Generate Sync Stub Files
run: python make_sync_stubs.py
- name: Build
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
container: aiudirog/aiohappybase-test-env:latest
strategy:
matrix:
python: ['3.6', '3.7', '3.8', '3.9']
python: ['3.9', '3.10', '3.11', '3.12']
client: ['socket', 'http']
fail-fast: false
steps:
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ include aiohappybase/*.thrift
include aiohappybase/sync/*.pyi
include *.rst
include doc/conf.py doc/*.rst
include versioneer.py
include aiohappybase/_version.py
recursive-include tests *.py
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
all: doc clean

doc:
python setup.py build_sphinx
sphinx-build doc/ doc/build/html/
@echo
@echo Generated documentation: "file://"$$(readlink -f doc/build/html/index.html)
@echo
Expand All @@ -17,4 +17,4 @@ clean:
find . -name '*.py[co]' -delete

dist: test
python setup.py sdist
python -m build
8 changes: 5 additions & 3 deletions aiohappybase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
from .batch import Batch
from .pool import ConnectionPool, NoConnectionsAvailable

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from importlib.metadata import version, PackageNotFoundError
try:
__version__ = version('aiohappybase')
except PackageNotFoundError:
__version__ = 'unknown'
Loading