]> git.wh0rd.org - gnudebbugs.git/blob - setup.py
initial release
[gnudebbugs.git] / setup.py
1 #!/usr/bin/env python3
2 # Copyright (C) 2021 Free Software Foundation, Inc.
3 #
4 # This program is free software: you can redistribute it and/or modify it under
5 # the terms of the GNU Lesser General Public License as published by the Free
6 # Software Foundation, either version 3 of the License, or at your option) any
7 # later version.
8 #
9 # This program is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 # details.
13 #
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
16
17 """Tooling to build the project.
18
19 Users should just run:
20 $ ./setup.py build
21 """
22
23 from pathlib import Path
24 import re
25
26 import setuptools
27
28
29 TOPDIR = Path(__file__).resolve().parent
30
31 long_description = (TOPDIR / "README.md").read_text()
32
33 DUNDERS = {}
34 data = (TOPDIR / "src/gnudebbugs/__init__.py").read_text()
35 for m in re.finditer(r"^__([^ ]+)__ = .(.*).$", data, flags=re.M):
36 DUNDERS[m.group(1)] = m.group(2)
37
38
39 setuptools.setup(
40 name="gnudebbugs",
41 version=DUNDERS['version'],
42 author="Mike Frysinger",
43 author_email="vapier@gmail.com",
44 description="CLI for debbugs.gnu.org",
45 long_description=long_description,
46 long_description_content_type="text/markdown",
47 url=DUNDERS['homepage'],
48 project_urls={
49 "Bug Tracker": DUNDERS['issue_tracker'],
50 },
51 classifiers=[
52 "Development Status :: 3 - Alpha",
53 "Environment :: Console",
54 "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
55 "Operating System :: OS Independent",
56 "Programming Language :: Python :: 3",
57 ],
58 package_dir={"": "src"},
59 packages=setuptools.find_packages(where="src"),
60 entry_points={
61 "console_scripts": [
62 'gnudebbugs=gnudebbugs.__main__:main',
63 ],
64 },
65 python_requires=">=3.8",
66 )