|
| 1 | +#!/usr/bin/env python |
| 2 | +import os |
| 3 | +from setuptools import setup, find_packages |
| 4 | +from pyjsonrpclite import version |
| 5 | + |
| 6 | + |
| 7 | +def read(fname): |
| 8 | + try: |
| 9 | + return open(os.path.join(os.path.dirname(__file__), fname)).read() |
| 10 | + except IOError: |
| 11 | + return "" |
| 12 | + |
| 13 | + |
| 14 | +setup( |
| 15 | + name="py-jsonrpc-lite", |
| 16 | + version=version, |
| 17 | + packages=find_packages(), |
| 18 | + test_suite="nose.collector", |
| 19 | + tests_require=["nose", "mock"], |
| 20 | + |
| 21 | + # metadata for upload to PyPI |
| 22 | + author="Dmitriy S. Sinyavskiy", |
| 23 | + author_email="contact@r3code.ru", |
| 24 | + url="https://github.com/r3code/py-jsonrpc-lite", |
| 25 | + description="Parse and Serialize JSON-RPC 2.0 messages in Python", |
| 26 | + long_description=read('README.rst'), |
| 27 | + |
| 28 | + # Full list: |
| 29 | + # https://pypi.python.org/pypi?%3Aaction=list_classifiers |
| 30 | + classifiers=[ |
| 31 | + "Development Status :: 4 - Beta", |
| 32 | + "Environment :: Console", |
| 33 | + "License :: OSI Approved :: MIT License", |
| 34 | + "Natural Language :: English", |
| 35 | + "Operating System :: OS Independent", |
| 36 | + "Programming Language :: Python :: 2.7", |
| 37 | + "Programming Language :: Python :: Implementation :: PyPy", |
| 38 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 39 | + ], |
| 40 | + license="MIT", |
| 41 | +) |
0 commit comments