Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 1968750

Browse files
committed
add and increment __version__
1 parent bab5916 commit 1968750

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

ethereum/__init__.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1+
# ############# version ##################
2+
from pkg_resources import get_distribution, DistributionNotFound
3+
import os.path
4+
try:
5+
_dist = get_distribution('ethereum')
6+
# Normalize case for Windows systems
7+
dist_loc = os.path.normcase(_dist.location)
8+
here = os.path.normcase(__file__)
9+
if not here.startswith(os.path.join(dist_loc, 'ethereum')):
10+
# not installed, but there is another version that *is*
11+
raise DistributionNotFound
12+
except DistributionNotFound:
13+
__version__ = 'Please install this project with setup.py'
14+
else:
15+
__version__ = _dist.version
16+
# ########### endversion ##################
17+
118
'''from ethereum import utils
219
from ethereum import trie
320
from ethereum import securetrie
421
from ethereum import blocks
522
from ethereum import transactions
623
from ethereum import processblock
7-
from ethereum import chainmanager
824
from ethereum import tester
925
from ethereum import abi
1026
from ethereum import ethash'''

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ def run_tests(self):
4141
url='https://github.com/ethereum/pyethereum/',
4242
install_requires=install_requires,
4343
entry_points=dict(console_scripts=console_scripts),
44-
version='0.9.61',
44+
version='0.9.62',
4545
cmdclass=cmdclass
4646
)

0 commit comments

Comments
 (0)