1"""xdis packaging information"""
2
3# To the extent possible we make this file look more like a
4# configuration file rather than code like setup.py. I find putting
5# configuration stuff in the middle of a function call in setup.py,
6# which for example requires commas in between parameters, is a little
7# less elegant than having it here with reduced code, albeit there
8# still is some room for improvement.
9
10# Python-version | package | last-version |
11# -----------------------------------------
12# 2.5            | pip     |  1.1         |
13# 2.6            | pip     |  1.5.6       |
14# 2.7            | pip     | 19.2.3       |
15# 2.7            | pip     |  1.2.1       |
16# 3.1            | pip     |  1.5.6       |
17# 3.2            | pip     |  7.1.2       |
18# 3.3            | pip     | 10.0.1       |
19# 3.4            | pip     | 19.1.1       |
20
21# Things that change more often go here.
22copyright = """
23Copyright (C) 2015-2020 Rocky Bernstein <rb@dustyfeet.com>.
24"""
25
26classifiers = [
27    "Development Status :: 5 - Production/Stable",
28    "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
29    "Intended Audience :: Developers",
30    "Operating System :: OS Independent",
31    "Programming Language :: Python",
32    "Programming Language :: Python :: 2.4",
33    "Programming Language :: Python :: 2.5",
34    "Programming Language :: Python :: 2.6",
35    "Programming Language :: Python :: 2.7",
36    "Programming Language :: Python :: 3",
37    "Programming Language :: Python :: 3.1",
38    "Programming Language :: Python :: 3.2",
39    "Programming Language :: Python :: 3.3",
40    "Programming Language :: Python :: 3.4",
41    "Programming Language :: Python :: 3.5",
42    "Programming Language :: Python :: 3.6",
43    "Programming Language :: Python :: 3.7",
44    "Programming Language :: Python :: 3.8",
45    "Programming Language :: Python :: 3.9",
46    "Topic :: Software Development :: Debuggers",
47    "Topic :: Software Development :: Libraries :: Python Modules",
48]
49
50_six = "six >= 1.10.0"
51
52# The rest in alphabetic order
53author = "Rocky Bernstein, Hartmut Goebel and others"
54author_email = "rb@dustyfeet.com"
55entry_points = {"console_scripts": ["pydisasm=xdis.bin.pydisasm:main"]}
56ftp_url = None
57
58# Python-version | package | last-version |
59# -----------------------------------------
60# 2.6            | pip     | 1.5.6        |
61# 3.1            | pip     | 1.5.6        |
62# 3.2            | pip     | 7.1.2        |
63# 3.2            | click   | 4.0          |
64
65install_requires = [_six, "click"]
66
67license = "GPL-2.0"
68mailing_list = "python-debugger@googlegroups.com"
69modname = "xdis"
70packages = ["xdis"]
71py_modules = None
72# setup_requires     = ['pytest-runner']
73scripts = ["bin/pydisasm.py"]
74short_desc = "Python cross-version byte-code disassembler and marshal routines"
75tests_require = ["pytest", _six]
76web = "https://github.com/rocky/python-xdis/"
77
78# tracebacks in zip files are funky and not debuggable
79zip_safe = True
80
81import os.path as osp
82
83
84def get_srcdir():
85    filename = osp.normcase(osp.dirname(osp.abspath(__file__)))
86    return osp.realpath(filename)
87
88
89srcdir = get_srcdir()
90
91
92def read(*rnames):
93    return open(osp.join(srcdir, *rnames)).read()
94
95
96long_description = read("README.rst") + "\n"
97