Skip to content

Commit

Permalink
Works with py3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkiss committed Dec 1, 2024
1 parent dcc7f51 commit 574a52e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
python-version: 3.13
- name: Install pep517
run: >-
python -m pip install pep517
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
python-version: [2.7, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12-dev"]
python-version: [2.7, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]

steps:
- name: Checkout Code
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pycoin -- Python Cryptocoin Utilities
=====================================

The pycoin library implements many utilities useful when dealing with bitcoin and some bitcoin-like
alt-coins. It has been tested with Python 2.7, 3.6 and 3.7.
alt-coins. It has been tested with Python 2.7, 3.7-3.13.

See also [pycoinnet](http://github.com/richardkiss/pycoinnet/) for a library that speaks the bitcoin protocol.

Expand Down
21 changes: 13 additions & 8 deletions pycoin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
from pkg_resources import get_distribution, DistributionNotFound
version = "unknown"

try:
from pkg_resources import get_distribution

version = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
version = "unknown"
except ImportError:
from importlib.metadata import version

version = version("pycoin")
except Exception:
pass

__title__ = 'pycoin'
__author__ = 'Richard Kiss'
__title__ = "pycoin"
__author__ = "Richard Kiss"
__version__ = version
__license__ = 'MIT'
__copyright__ = 'Copyright 2018 Richard Kiss'
__license__ = "MIT"
__copyright__ = "Copyright 2018 Richard Kiss"

"""
:copyright: (c) 2018 by Richard Kiss
Expand Down

0 comments on commit 574a52e

Please sign in to comment.