Skip to content

Commit 6d09735

Browse files
committed
github migration, bumpversion, python2 deprecation
1 parent 9947d47 commit 6d09735

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# py-solc
22

3-
[![Build Status](https://travis-ci.org/pipermerriam/py-solc.png)](https://travis-ci.org/pipermerriam/py-solc)
3+
[![Build Status](https://travis-ci.org/ethereum/py-solc.png)](https://travis-ci.org/ethereum/py-solc)
44
[![PyPi version](https://pypip.in/v/py-solc/badge.png)](https://pypi.python.org/pypi/py-solc)
55
[![PyPi downloads](https://pypip.in/d/py-solc/badge.png)](https://pypi.python.org/pypi/py-solc)
66

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88

99
setup(
1010
name='py-solc',
11+
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
1112
version='2.0.0',
1213
description="""Python wrapper around the solc binary""",
1314
long_description_markdown_filename='README.md',
1415
author='Piper Merriam',
1516
author_email='[email protected]',
16-
url='https://github.com/pipermerriam/py-solc',
17+
url='https://github.com/ethereum/py-solc',
1718
include_package_data=True,
1819
py_modules=['solc'],
1920
setup_requires=['setuptools-markdown'],

solc/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from __future__ import absolute_import
22

3+
import sys
4+
import warnings
5+
36
from .main import ( # noqa: F401
47
get_solc_version_string,
58
get_solc_version,
@@ -11,3 +14,10 @@
1114
from .install import ( # noqa: F401
1215
install_solc,
1316
)
17+
18+
if sys.version_info.major < 3:
19+
warnings.simplefilter('always', DeprecationWarning)
20+
warnings.warn(DeprecationWarning(
21+
"The `py-solc` library is dropping support for Python 2. Upgrade to Python 3."
22+
))
23+
warnings.resetwarnings()

0 commit comments

Comments
 (0)