File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 88
99setup (
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' ,
151616- 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' ],
Original file line number Diff line number Diff line change 11from __future__ import absolute_import
22
3+ import sys
4+ import warnings
5+
36from .main import ( # noqa: F401
47 get_solc_version_string ,
58 get_solc_version ,
1114from .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 ()
You can’t perform that action at this time.
0 commit comments