2 # Copyright (C) 2021 Free Software Foundation, Inc.
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
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
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/>.
17 """Tooling to build the project.
19 Users should just run:
23 from pathlib
import Path
29 TOPDIR
= Path(__file__
).resolve().parent
31 long_description
= (TOPDIR
/ "README.md").read_text()
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)
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'],
49 "Bug Tracker": DUNDERS
['issue_tracker'],
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",
58 package_dir
={"": "src"},
59 packages
=setuptools
.find_packages(where
="src"),
62 'gnudebbugs=gnudebbugs.__main__:main',
65 python_requires
=">=3.8",