-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
53 lines (45 loc) · 1.7 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
53
from distutils.core import setup
import os.path
import setuptools
def readme():
if os.path.exists('README.md'):
with open('README.md') as f:
return f.read()
else:
return "Python client for socket-cluster framework in node.js"
version = '1.3.6'
setup(
name='socketclusterclient',
packages=setuptools.find_packages(), # this must be the same as the name above
version=version,
description='Client library for socketcluster framework in nodejs',
long_description_content_type="text/markdown",
long_description=readme(),
author='Sachin Shinde',
author_email='[email protected]',
license='MIT',
url='https://github.com/sacOO7/socketcluster-client-python', # use the URL to the github repo
download_url='https://github.com/sacOO7/socketcluster-client-python/tarball/v' + version,
keywords=['websocket', 'socketcluster', 'nodejs', 'client', 'socketclusterclient'], # arbitrary keywords
install_requires=[
'websocket-client<=0.48',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=2.7',
)
## register
# python3 setup.py register -r pypitest
# python3 setup.py register -r pypi
## Build and upload
# visit https://packaging.python.org/tutorials/packaging-projects/#description
# python3 setup.py sdist bdist_wheel // make sure packages are updated
# python3 -m twine check dist/*
# python3 -m twine upload dist/*
# git tag -a v1.3.4 -m "Fixed #16, websocket client version issue"
# git push --tags origin
# https://upload.pypi.org/legacy/