Skip to content
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# py-solc

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

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@

setup(
name='py-solc',
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
version='2.0.0',
description="""Python wrapper around the solc binary""",
long_description_markdown_filename='README.md',
author='Piper Merriam',
author_email='pipermerriam@gmail.com',
url='https://github.com/pipermerriam/py-solc',
url='https://github.com/ethereum/py-solc',
include_package_data=True,
py_modules=['solc'],
setup_requires=['setuptools-markdown'],
Expand Down
10 changes: 10 additions & 0 deletions solc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from __future__ import absolute_import

import sys
import warnings

from .main import ( # noqa: F401
get_solc_version_string,
get_solc_version,
Expand All @@ -11,3 +14,10 @@
from .install import ( # noqa: F401
install_solc,
)

if sys.version_info.major < 3:
warnings.simplefilter('always', DeprecationWarning)
warnings.warn(DeprecationWarning(
"The `py-solc` library is dropping support for Python 2. Upgrade to Python 3."
))
warnings.resetwarnings()