2019-11-30 22:56:50 +01:00
|
|
|
#!/usr/bin/python3
|
2014-05-23 07:46:51 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2014-08-27 20:12:17 +02:00
|
|
|
# setup.py file is part of slpkg.
|
2014-08-13 06:28:04 +02:00
|
|
|
|
2020-01-30 16:56:07 +01:00
|
|
|
# Copyright 2014-2020 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
|
2014-08-13 06:28:04 +02:00
|
|
|
# All rights reserved.
|
|
|
|
|
2014-12-19 05:57:56 +01:00
|
|
|
# Slpkg is a user-friendly package manager for Slackware installations
|
2014-08-13 06:28:04 +02:00
|
|
|
|
2018-06-09 22:00:52 +02:00
|
|
|
# https://gitlab.com/dslackw/slpkg
|
2014-08-13 06:28:04 +02:00
|
|
|
|
2014-08-27 20:12:17 +02:00
|
|
|
# Slpkg is free software: you can redistribute it and/or modify
|
2014-08-13 06:28:04 +02:00
|
|
|
# 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/>.
|
|
|
|
|
2015-05-28 05:07:13 +02:00
|
|
|
|
2014-06-20 03:43:40 +02:00
|
|
|
import os
|
2016-02-09 18:53:51 +01:00
|
|
|
import time
|
2015-06-08 14:39:16 +02:00
|
|
|
from slpkg.__metadata__ import MetaData as _meta_
|
2014-11-26 04:42:23 +01:00
|
|
|
|
2014-07-17 04:46:34 +02:00
|
|
|
try:
|
|
|
|
from setuptools import setup
|
|
|
|
except ImportError:
|
|
|
|
from distutils.core import setup
|
2014-05-23 07:46:51 +02:00
|
|
|
|
2019-12-03 12:45:17 +01:00
|
|
|
docs_requires = []
|
2020-01-15 01:10:52 +01:00
|
|
|
tests_requires = [
|
|
|
|
"pytest>=5.3.2"
|
|
|
|
]
|
2019-12-03 12:45:17 +01:00
|
|
|
install_requires = [
|
2019-12-11 15:19:54 +01:00
|
|
|
"urllib3>=1.25.7"
|
2019-12-03 12:45:17 +01:00
|
|
|
]
|
|
|
|
optional_requires = [
|
|
|
|
"pythondialog>=3.5.0",
|
|
|
|
"pygraphviz>=1.3.1"
|
2015-08-09 14:24:36 +02:00
|
|
|
]
|
2015-08-26 02:33:19 +02:00
|
|
|
|
2015-08-22 06:58:41 +02:00
|
|
|
# Non-Python/non-PyPI optional dependencies:
|
|
|
|
# ascii diagram: graph-easy (available from SBo repository)
|
2015-08-09 14:24:36 +02:00
|
|
|
|
2016-02-09 18:53:51 +01:00
|
|
|
|
2018-03-18 18:01:04 +01:00
|
|
|
def print_logo():
|
2019-12-03 19:54:44 +01:00
|
|
|
"""print slpkg logo"""
|
2020-02-13 22:12:28 +01:00
|
|
|
logo_fname = os.path.join(os.path.dirname(__file__), 'logo.txt')
|
|
|
|
with open(logo_fname, 'rb') as f:
|
|
|
|
logo = f.read().decode('utf-8')
|
|
|
|
print(logo)
|
|
|
|
time.sleep(1)
|
2018-03-18 18:01:04 +01:00
|
|
|
|
2019-01-19 11:27:37 +01:00
|
|
|
|
2018-03-18 18:01:04 +01:00
|
|
|
print_logo()
|
2015-08-25 06:34:40 +02:00
|
|
|
|
2019-01-19 11:27:37 +01:00
|
|
|
|
2014-05-23 07:46:51 +02:00
|
|
|
setup(
|
2014-09-21 22:08:20 +02:00
|
|
|
name="slpkg",
|
2014-11-07 05:44:16 +01:00
|
|
|
packages=["slpkg", "slpkg/sbo", "slpkg/pkg", "slpkg/slack",
|
2015-01-29 03:21:22 +01:00
|
|
|
"slpkg/binary"],
|
2014-09-21 22:08:20 +02:00
|
|
|
scripts=["bin/slpkg"],
|
2015-06-08 14:39:16 +02:00
|
|
|
version=_meta_.__version__,
|
2015-07-20 13:27:28 +02:00
|
|
|
description="Package manager for Slackware installations",
|
2019-12-02 11:15:02 +01:00
|
|
|
long_description=open("README.md").read(),
|
2014-06-20 03:43:40 +02:00
|
|
|
keywords=["slackware", "slpkg", "upgrade", "install", "remove",
|
2014-10-14 05:01:38 +02:00
|
|
|
"view", "slackpkg", "tool", "build"],
|
2015-06-08 14:39:16 +02:00
|
|
|
author=_meta_.__author__,
|
|
|
|
author_email=_meta_.__email__,
|
2019-01-19 12:09:31 +01:00
|
|
|
url="https://dslackw.gitlab.io/slpkg/",
|
2019-01-19 11:23:17 +01:00
|
|
|
package_data={"": ["LICENSE", "README.md", "CHANGELOG"]},
|
2018-03-18 18:01:04 +01:00
|
|
|
data_files=[("man/man8", ["man/slpkg.8"]),
|
|
|
|
("/etc/bash_completion.d", ["conf/slpkg.bash-completion"]),
|
2020-02-13 22:12:28 +01:00
|
|
|
("/etc/fish/completions", ["conf/slpkg.fish"])],
|
2019-12-03 12:45:17 +01:00
|
|
|
install_requires=install_requires,
|
2015-08-09 14:24:36 +02:00
|
|
|
extras_require={
|
2019-12-03 12:45:17 +01:00
|
|
|
"optional": optional_requires,
|
|
|
|
"docs": docs_requires,
|
|
|
|
"tests": tests_requires,
|
2015-08-09 14:24:36 +02:00
|
|
|
},
|
2014-06-20 03:43:40 +02:00
|
|
|
classifiers=[
|
2014-07-17 04:46:34 +02:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Environment :: Console",
|
2014-05-23 07:46:51 +02:00
|
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
|
|
"Operating System :: POSIX :: Linux",
|
2014-07-17 04:46:34 +02:00
|
|
|
"Operating System :: Unix",
|
2019-12-03 13:35:18 +01:00
|
|
|
"Programming Language :: Python",
|
2019-11-30 22:56:50 +01:00
|
|
|
"Programming Language :: Python :: 3",
|
2014-07-17 04:46:34 +02:00
|
|
|
"Programming Language :: Unix Shell",
|
|
|
|
"Topic :: Software Development :: Build Tools",
|
|
|
|
"Topic :: System :: Archiving :: Packaging",
|
|
|
|
"Topic :: System :: Software Distribution",
|
2019-12-03 13:35:18 +01:00
|
|
|
"Topic :: System :: Installation/Setup",
|
|
|
|
"Topic :: System :: Systems Administration",
|
|
|
|
"Topic :: System :: Software Distribution",
|
2014-07-17 04:46:34 +02:00
|
|
|
"Topic :: Utilities"],
|
2019-12-02 11:15:02 +01:00
|
|
|
python_requires=">=3.7"
|
2020-02-13 22:12:28 +01:00
|
|
|
)
|