File tree Expand file tree Collapse file tree 3 files changed +40
-1
lines changed
Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
3+ '''
4+ nrepl
5+ -----
6+
7+ A Python client for the nREPL Clojure networked-REPL server.
8+
9+ :copyright: (c) 2013 by Chas Emerick.
10+ :license: MIT, see LICENSE for more details.
11+ '''
12+
13+
314import socket
415import nrepl .bencode as bencode
516import threading
819except ImportError :
920 from urllib .parse import urlparse , ParseResult
1021
22+ __version_info__ = ('0' , '0' , '3' )
23+ __version__ = '.' .join (__version_info__ )
24+ __author__ = 'Chas Emerick'
25+ __license__ = 'MIT'
26+ __copyright__ = '(c) 2013 by Chas Emerick'
27+ __all__ = ['connect' , 'WatchableConnection' ]
28+
1129
1230def _bencode_connect (uri ):
1331 s = socket .create_connection (uri .netloc .split (":" ))
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
3+ '''
4+ nrepl.bencode
5+ -------------
6+
7+ This module provides BEncode-protocol support.
8+
9+ :copyright: (c) 2013 by Chas Emerick.
10+ :license: MIT, see LICENSE for more details.
11+ '''
12+
13+
314try :
415 from cStringIO import StringIO
516except ImportError :
Original file line number Diff line number Diff line change 99 * `development version <https://github.com/cemerick/nrepl-python-client>`_
1010'''
1111
12+ import os
13+
1214from setuptools import setup , find_packages
1315
16+ # HACK: Pull the version number without requiring the package to be installed
17+ # beforehand, i.e. without using import.
18+ module_path = os .path .join (os .path .dirname (__file__ ), 'nrepl/__init__.py' )
19+ version_line = [line for line in open (module_path )
20+ if line .startswith ('__version_info__' )][0 ]
21+
22+ __version__ = '.' .join (eval (version_line .split ('__version_info__ = ' )[- 1 ]))
23+
1424description = "A Python client for the nREPL Clojure networked-REPL server."
1525classifiers = ['Development Status :: 4 - Beta' ,
1626 'Environment :: Console' ,
2434 'Topic :: Utilities' ]
2535
2636setup (name = "nrepl-python-client" ,
27- version = "0.0.3" ,
37+ version = __version__ ,
2838 packages = find_packages (),
2939 # metadata for upload to PyPI
3040 author = "Chas Emerick" ,
You can’t perform that action at this time.
0 commit comments