-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·52 lines (46 loc) · 1.43 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
import os.path
import re
import warnings
import sys
import uuid
from pip.req import parse_requirements
from setuptools import setup, find_packages
from beltway import __version__ as version
#
# news = os.path.join(os.path.dirname(__file__), 'docs', 'news.rst')
# news = open(news).read()
# parts = re.split(r'([0-9\.]+)\s*\n\r?-+\n\r?', news)
# found_news = ''
# for i in range(len(parts) - 1):
# if parts[i] == version:
# found_news = parts[i + i]
# break
# if not found_news:
# warnings.warn('No news for this version found.')
long_description = """
Beltway is a threaded WAMP client (a loose port of Autobahn).
"""
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
reqs = [str(ir.req) for ir in install_reqs]
# if found_news:
# title = 'Changes in %s' % version
# long_description += '\n%s\n%s\n' % (title, '-' * len(title))
# long_description += found_news
setup(
name='beltway',
version=version,
author='Unspecified',
url='https://github.com/matthewh/beltway',
license='MIT',
description='Threaded WAMP client',
long_description=long_description,
packages=find_packages(),
include_package_data=True,
install_requires=reqs,
setup_requires=['nose>=1.0'],
tests_require=['nose>=1.0.3'],
test_suite='nose.collector',
zip_safe=False
)