-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (38 loc) · 1.42 KB
/
setup.py
File metadata and controls
48 lines (38 loc) · 1.42 KB
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
import sys
from setuptools import setup, find_packages
version = '0.1.1'
long_description = """
Extending Python's Future (Promise) object with missing chaining API like `.then()` and others.
Adapting the most useful chaining mechanisms from JavaScript Promises.
"""
project_home = 'https://github.com/dvdotsenko/python-future-then'
requirements = []
if sys.version_info[0] < 3:
requirements.append('futures') # adds concurrent.futures backport for pre-v3 python
if __name__ == "__main__":
setup(
name='futures_then',
description='Python Futures made then-able',
long_description=long_description,
version=version,
author='Daniel Dotsenko',
author_email='dotsa@hotmail.com',
url=project_home,
download_url=project_home+'/tarball/master',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7"
],
keywords = ['Promise', 'Future', 'Promises', 'Futures', 'thenable', 'chain'],
license='MIT',
packages=['futures_then'],
include_package_data=True,
install_requires=requirements
)
# Next:
# python setup.py register
# python setup.py sdist upload