-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
executable file
·75 lines (61 loc) · 2.34 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
#!/usr/bin/python
import os
from setuptools import find_packages, setup
try:
from subprocess import getstatusoutput
except ImportError:
from commands import getstatusoutput
def bash_completion_dir():
(sts, output) = getstatusoutput(
'pkg-config --variable=completionsdir bash-completion')
return output if not sts and output else '/etc/bash_completion.d'
project_dir = os.path.dirname(os.path.realpath(__file__))
requirements = os.path.join(project_dir, 'requirements.txt')
tests_requirements = os.path.join(project_dir, 'tests-requirements.txt')
with open(requirements, 'r') as f:
install_requires = [line.strip() for line in f]
install_requires += [
'distro',
]
with open(tests_requirements, 'r') as f:
tests_require = [line.strip() for line in f]
setup(
name="rfpkg",
version="1.27.4",
author="Nicolas Chauvet",
author_email="kwizart@gmail.com",
description=("RPM Fusion plugin to rpkg to manage "
"package sources in a git repository"),
license="GPLv2+",
url="https://github.com/rpmfusion-infra/rfpkg",
packages=find_packages(),
data_files=[(bash_completion_dir(), ['conf/bash-completion/rfpkg.bash']),
('/etc/rpkg', ['conf/etc/rpkg/rfpkg.conf']),
('/usr/share/zsh/site-functions', ['conf/zsh-completion/_rfpkg']),
],
install_requires=install_requires,
tests_require=tests_require,
entry_points={
'console_scripts': [
'rfpkg = rfpkg.__main__:main',
],
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
)