-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
75 lines (70 loc) · 2.6 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
import setuptools
import sys
import os
# - For the example on which this was based, see
# https://github.com/poikilos/pypicolcd/blob/master/setup.py
# - For nose, see https://github.com/poikilos/mgep/blob/master/setup.py
versionedModule = {}
versionedModule['urllib'] = 'urllib'
if sys.version_info.major < 3:
versionedModule['urllib'] = 'urllib2'
install_requires = []
if os.path.isfile("requirements.txt"):
with open("requirements.txt", "r") as ins:
for rawL in ins:
line = rawL.strip()
if len(line) < 1:
continue
install_requires.append(line)
description = (
"Automate the installation of any source with zero"
" configuration. The source can be a zip or gz binary"
" package, appimage, directory, or executable file."
)
long_description = description
if os.path.isfile("readme.md"):
with open("readme.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='nopackage',
version='0.9.0',
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3',
('License :: OSI Approved ::'
' GNU General Public License v3 or later (GPLv3+)'),
'Operating System :: POSIX :: Linux',
'Topic :: System :: Installation/Setup',
],
keywords='python install installer deb debian AppImage shortcut',
url="https://github.com/poikilos/nopackage",
author="Jake Gustafson",
author_email='7557867+poikilos@users.noreply.github.com',
license='GPLv3+',
# packages=setuptools.find_packages(),
packages=['nopackage'],
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': [
'nopackage=nopackage: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.
)