Skip to content

Commit 745dcea

Browse files
committed
Encoding converted to utf8; added setup.py
1 parent f124139 commit 745dcea

File tree

5 files changed

+46
-5
lines changed

5 files changed

+46
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# https://travis-ci.org/r3code/py-jsonrpc-lite
1+
# https://travis-ci.org/r3code/py-jsonrpc-lite
22
language: python
33
sudo: false
44
python:

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
py-jsonrpc-lite
1+
py-jsonrpc-lite
22
===============
33

44
.. image:: https://travis-ci.org/r3code/py-jsonrpc-lite.svg?branch=master
@@ -24,7 +24,7 @@ This implementation does not have any transport functionality realization, only
2424
Install
2525
-------
2626

27-
#todo
27+
pip install py-jsonrpc-lite
2828

2929
Tests
3030
-----

pyjsonrpclite/jsonrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#! /usr/bin/env python
22
# -*- coding: utf-8 -*-
33
import json
44

setup.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
)

tests/testutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
33

44
# see http://docs.python-guide.org/en/latest/writing/structure/

0 commit comments

Comments
 (0)