This repository has been archived by the owner on Jun 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
81 lines (69 loc) · 2.8 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
78
79
80
81
# flake8: noqa
# isort:skip_file
# meteoalarm-rssapi -- an 'API' for meteoalarm.eu using the rss feeds.
# Copyright (C) 2021 Alexandre Lima Conde
# SPDX-License-Identifier: GPL-3.0-or-later
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from datetime import datetime as dt
from setuptools import setup
from meteoalarm_rssapi import __version__
PROJECT_NAME = "meteoalarm_rssapi"
PROJECT_PACKAGE_NAME = "meteoalarm_rssapi"
PROJECT_LICENSE = "GPL v3"
PROJECT_LICENSE_URL = "https://github.com/xlcnd/meteoalarm-rssapi/blob/dev/LICENSE.txt"
PROJECT_AUTHOR = "xlcnd"
PROJECT_COPYRIGHT = f"{dt.now().year}, {PROJECT_AUTHOR}"
PROJECT_URL = "https://github.com/xlcnd/meteoalarm-rssapi"
PROJECT_EMAIL = "xlcnd@outlook.com"
PROJECT_VERSION = __version__
PROJECT_GITHUB_USERNAME = "xlcnd"
PROJECT_GITHUB_REPOSITORY = "meteoalarm-rssapi"
GITHUB_PATH = f"{PROJECT_GITHUB_USERNAME}/{PROJECT_GITHUB_REPOSITORY}"
GITHUB_URL = f"https://github.com/{GITHUB_PATH}"
DOWNLOAD_URL = "{}/archive/{}.zip".format(GITHUB_URL, "v" + PROJECT_VERSION)
PROJECT_URLS = {
"Bug Reports": f"{GITHUB_URL}/issues",
"License": PROJECT_LICENSE_URL,
}
PYPI_URL = f"https://pypi.org/project/{PROJECT_PACKAGE_NAME}/"
PYPI_CLASSIFIERS = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
]
PACKAGES = [
"meteoalarm_rssapi",
]
setup(
name=PROJECT_PACKAGE_NAME,
version=PROJECT_VERSION,
url=PROJECT_URL,
download_url=DOWNLOAD_URL,
project_urls=PROJECT_URLS,
author=PROJECT_AUTHOR,
author_email=PROJECT_EMAIL,
packages=PACKAGES,
license=PROJECT_LICENSE,
description='An "API" for meteoalarm.eu using the rss feeds.',
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
keywords="meteoalarm",
classifiers=PYPI_CLASSIFIERS,
)