forked from actionless/pikaur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (51 loc) · 1.96 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
from distutils.core import setup
# To use a consistent encoding
import codecs
from os import path, environ
from typing import Dict, Any
if environ.get('PYPY_BUILD'):
import setuptools # pylint: disable=unused-import
HERE = path.abspath(path.dirname(__file__))
with codecs.open(path.join(HERE, 'README.md'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
SETUP_ARGS: Dict[str, Any] = dict(
name='pikaur', # Required
version='1.10.1', # Required
description='AUR helper with minimal dependencies', # Required
long_description=LONG_DESCRIPTION, # Optional
url='https://github.com/actionless/pikaur', # Optional
author='Yauheni Kirylau', # Optional
author_email='[email protected]', # Optional
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Information Technology',
'Intended Audience :: Other Audience',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Build Tools',
'Topic :: System :: Archiving :: Packaging',
'Topic :: System :: Installation/Setup',
'Topic :: Utilities',
],
# Note that this is a string of words separated by whitespace, not a list.
keywords='arch linux aur helper',
packages=["pikaur", ], # Required
)
EXTRA_ARGS_SETUPTOOLS = dict(
long_description_content_type="text/markdown",
install_requires=["pyalpm"],
entry_points={
'console_scripts': [
'pikaur = pikaur.main:main'
]
}
)
if environ.get('PYPY_BUILD'):
SETUP_ARGS.update(EXTRA_ARGS_SETUPTOOLS)
setup(**SETUP_ARGS)