-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
82 lines (78 loc) · 3.12 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
82
import setuptools
# import sys
import os
'''
versionedModule = {}
versionedModule['urllib'] = 'urllib'
if sys.version_info.major < 3:
versionedModule['urllib'] = 'urllib2'
'''
install_requires = [
'pycodetool @ git+https://github.com/Hierosoft/pycodetool.git',
'Pillow',
'python-magic',
]
description = (
"The linuxpreinstall module has useful features"
" for system and file management. The larger linux-preinstall project has"
" many shell scripts for setting up GNU+Linux systems more quickly."
" Features will be moved to Python as seems reasonable."
)
long_description = description
if os.path.isfile("readme.md"):
with open("readme.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='linuxpreinstall',
version='0.5.0',
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
('License :: OSI Approved ::'
' GNU General Public License v3 or later (GPLv3+)'),
'Operating System :: POSIX :: Linux',
'Topic :: System :: Systems Administration',
],
keywords=('python system management IT tools linux installation'
' package selection preloading preinstall'),
url="https://github.com/Hierosoft/linux-preinstall",
author="Jake Gustafson",
author_email='[email protected]',
license='GPLv3+',
# packages=setuptools.find_packages(),
packages=['linuxpreinstall'],
include_package_data=True, # look for MANIFEST.in
# scripts=['example'],
# ^ Don't use scripts anymore (according to
# <https://packaging.python.org/en/latest/guides
# /distributing-packages-using-setuptools
# /?highlight=scripts#scripts>).
entry_points={
'console_scripts': [
'cleanif=linuxpreinstall.cleanif:main',
'findmime=linuxpreinstall.findmime:main',
'unredirect_md=linuxpreinstall.unredirect:main',
'selectoutput=linuxpreinstall.selectoutput:main',
'whichicon=linuxpreinstall.whichicon:main',
# 'cb-install-theme=linuxpreinstall.codeblocks.theme:main', # WIP
'backup-nginx-symlinks=linuxpreinstall.server.backup_nginx_symlinks:main',
'sort-brisk-menu-favs=linuxpreinstall.mate.brisk_menu:main',
'zc-make-sized-images=linuxpreinstall.server.zc:main',
# 'remove-blank-mate-items=linuxpreinstall.mate.panel:main', # WIP
'phpversion=linuxpreinstall.phpversion:main',
],
},
install_requires=install_requires,
# versionedModule['urllib'],
# ^ "ERROR: Could not find a version that satisfies the requirement
# urllib (from nopackage) (from versions: none)
# ERROR: No matching distribution found for urllib"
# (urllib imports fine in Python3 on Fedora 35 though
# pip uninstall urllib and pip uninstall urllib2 do nothing)
test_suite='nose.collector',
tests_require=['nose', 'nose-cover3'],
zip_safe=False, # It can't run zipped due to needing data files.
)