/
setup.py
57 lines (46 loc) · 1.77 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
54
55
56
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from sys import argv, exit
import os, re
m = open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "joystick", "_version.py")).read()
version = re.findall(r"__version__ *= *\"(.*?)\"", m)[0]
if "upl" in argv[1:]:
os.system("python setup.py sdist")
os.system("twine upload -r pypi ./dist/joystick-{}.tar.gz".format(version))
exit()
try:
from setuptools import setup
setup
except ImportError:
from distutils.core import setup
setup
try:
desc = open("README.rst").read() + "\n\n" + "Changelog\n" + "---------\n\n" + open("HISTORY.rst").read()
except:
desc = ""
setup(
name = "joystick",
version = version,
author = "Guillaume Schworer",
author_email = "guillaume.schworer@gmail.com",
packages = ["joystick"],
url = "https://github.com/ceyzeriat/joystick/",
license = "GNU General Public License v3 or later (GPLv3+)",
description = "Real-time plotting and logging while console controlling",
long_description = desc,
package_data = {"": ["LICENSE", "AUTHORS.rst", "HISTORY.rst", "README.rst"]},
include_package_data = True,
install_requires = [],
download_url = 'https://github.com/ceyzeriat/joystick/tree/master/dist',
keywords = ['realtime', 'real', 'time', 'live', 'stream', 'figure', 'data', 'matplotlib', 'control', 'thread', 'serial', 'plot'],
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
'Intended Audience :: Education',
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python"
],
)