forked from Kwpolska/pkgbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·84 lines (80 loc) · 4.01 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
83
84
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests/']
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(name='pkgbuilder',
version='4.3.0',
description='An AUR helper (and library) in Python 3.',
keywords='arch pkgbuild',
author='Chris Warrick',
author_email='[email protected]',
url='https://github.com/Kwpolska/pkgbuilder',
license='3-clause BSD',
long_description=open('./docs/README.rst', 'r', encoding='utf-8').read(),
platforms='Arch Linux',
zip_safe=False,
include_package_data=True,
cmdclass={'test': PyTest},
classifiers=['Development Status :: 6 - Mature',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Topic :: System',
'Topic :: System :: Archiving :: Packaging',
'Topic :: Utilities'],
packages=['pkgbuilder'],
install_requires=['pyalpm', 'requests', 'srcinfo'],
data_files=[('share/man/man8', ['docs/pkgbuilder.8.gz']),
('share/man/man8', ['docs/pb.8.gz']),
('share/locale/pl/LC_MESSAGES', ['locale/pl/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/ar/LC_MESSAGES', ['locale/ar/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/cs/LC_MESSAGES', ['locale/cs/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/de/LC_MESSAGES', ['locale/de/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/es/LC_MESSAGES', ['locale/es/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/id/LC_MESSAGES', ['locale/id/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/it/LC_MESSAGES', ['locale/it/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/ja/LC_MESSAGES', ['locale/ja/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/pt/LC_MESSAGES', ['locale/pt/LC_MESSAGES/'
'pkgbuilder.mo']),
#('share/locale/pt_BR/LC_MESSAGES',
#['locale/pt_BR/LC_MESSAGES/pkgbuilder.mo']),
('share/locale/sk/LC_MESSAGES', ['locale/sk/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/sv/LC_MESSAGES', ['locale/sv/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/tr/LC_MESSAGES', ['locale/tr/LC_MESSAGES/'
'pkgbuilder.mo']),
('share/locale/vi/LC_MESSAGES', ['locale/vi/LC_MESSAGES/'
'pkgbuilder.mo'])],
entry_points={
'console_scripts': [
'pkgbuilder = pkgbuilder.__main__:main',
'pb = pkgbuilder.wrapper:main'
]
},
)