Skip to content

Commit f6707ad

Browse files
committed
use requirements.txt in setup.py
1 parent d5aaa0e commit f6707ad

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include requirements.txt

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A Python async client for the [NATS messaging system](https://nats.io).
99
## Supported platforms
1010

1111
Should be compatible with following versions of [Python](https://www.python.org/)
12-
using [Tornado 4.2+](https://github.com/tornadoweb/tornado/tree/v4.2.0)
12+
using [Tornado 4.2+](https://github.com/tornadoweb/tornado/tree/v4.2.0) (less than 5.0)
1313
with [gnatsd](https://github.com/nats-io/gnatsd) as the server:
1414

1515
- 2.7.x

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
import os
12
from setuptools import setup, find_packages
23
from nats import __version__
34

5+
this_dir = os.path.dirname(os.path.abspath(__file__))
6+
with open(os.path.join(this_dir, 'requirements.txt')) as f:
7+
requirements = f.read().splitlines()
8+
49
setup(
510
name='nats-client',
611
version=__version__,
@@ -11,7 +16,7 @@
1116
author_email='[email protected]',
1217
license='Apache 2.0 License',
1318
packages=['nats', 'nats.io', 'nats.protocol'],
14-
install_requires=['tornado>=4.2'],
19+
install_requires=requirements,
1520
zip_safe=True,
1621
classifiers=[
1722
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)