-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
78 lines (68 loc) · 2.73 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
70
71
72
73
74
75
76
77
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
A setuptools-based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
Docs on the setup function kwargs:
https://packaging.python.org/distributing/#setup-args
"""
from __future__ import absolute_import, print_function
import glob
import os.path
from setuptools import setup, find_packages
import codecs # Use a consistent encoding.
# Get the long description from the README.rst file.
current_dir = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(current_dir, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="strip-hints",
version="0.1.10", # major version, minor version, patch (see PEP440)
description="Function and command-line program to strip Python type hints.",
keywords=["type", "hints", "strip", "annotations", "typing"],
install_requires=["wheel",],
url="https://github.com/abarker/strip-hints",
entry_points = {
"console_scripts": ["strip-hints = strip_hints.strip_hints_main:process_command_line"]
},
license="MIT",
classifiers=[
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
# Development Status: Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
# uncomment if you test on these interpreters:
# "Programming Language :: Python :: Implementation :: IronPython",
# "Programming Language :: Python :: Implementation :: Jython",
# "Programming Language :: Python :: Implementation :: Stackless",
"Topic :: Utilities",
],
# Settings usually the same.
author="Allen Barker",
author_email="Allen.L.Barker@gmail.com",
include_package_data=True,
zip_safe=False,
# Automated stuff below.
long_description=long_description,
packages=find_packages("src"),
package_dir={"": "src"},
py_modules=[os.path.splitext(os.path.basename(path))[0]
for path in glob.glob("*.py")],
)