forked from cslarsen/wpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (61 loc) · 2.3 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
57
58
59
60
61
62
63
64
65
66
67
68
69
"""
Setup script for WPM.
This file is part of the wpm software.
Copyright 2017, 2018 Christian Stigen Larsen
Distributed under the GNU Affero General Public License (AGPL) v3 or later. See
the file LICENSE.txt for the full license text. This software makes use of open
source software.
The quotes database is *not* covered by the AGPL!
"""
import os
import runpy
from setuptools import setup
def get_version():
"""Reads current WPM version from disk."""
filename = os.path.join(os.path.dirname(__file__), "wpm", "__init__.py")
var = runpy.run_path(filename)
return var["__version__"]
_VERSION = get_version()
setup(
name="wpm",
scripts=["scripts/wpm"],
version=_VERSION,
description="Console app for measuring typing speed in words per minute (WPM)",
author="Christian Stigen Larsen",
author_email="[email protected]",
packages=["wpm"],
package_dir={"wpm": "wpm"},
package_data={"wpm": ["data/examples.json.gz"]},
include_package_data=True,
url="https://github.com/cslarsen/wpm",
download_url="https://github.com/cslarsen/wpm/tarball/v%s" % _VERSION,
license="https://www.gnu.org/licenses/agpl-3.0.html",
long_description=open("README.rst").read(),
install_requires=["setuptools"],
zip_safe=True,
test_suite="tests",
keywords=["wpm", "typing", "typist"],
platforms=["unix", "linux", "osx", "cygwin"],
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: PyPy",
],
)