forked from dontnod/nimp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
90 lines (72 loc) · 2.39 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
85
86
87
88
89
90
#!/usr/bin/env python
import subprocess
import setuptools
def _try_get_revision():
try:
output = subprocess.check_output([ 'git', 'rev-parse', '--short=10', 'HEAD' ])
except (FileNotFoundError, subprocess.CalledProcessError):
return None
return output.decode('utf-8').strip()
# Update version below and:
# python3 setup.py bdist
# python3 setup.py sdist upload
version_short = '0.14.2'
revision = _try_get_revision()
version_full = version_short + ('+' + revision if revision else '')
setup_info = dict(
name = 'nimp-cli',
version = version_full,
description = 'Multipurpose build tool',
long_description = '' +
'Nimp is a cross-platform tool that helps maintain, compile, cook, ' +
'and ship game projects. It currently supports Unreal Engine.' +
'',
license = 'MIT',
url = 'https://github.com/dontnod/nimp',
download_url = 'https://github.com/dontnod/nimp/archive/' + version_short + '.tar.gz',
author = 'Dontnod Entertainment',
author_email = '[email protected]',
packages = [
'nimp',
'nimp/base_commands',
'nimp/base_platforms',
'nimp/model',
'nimp/sys',
'nimp/unreal_engine',
'nimp/utils',
],
install_requires = [
'glob2',
'packaging',
'python-magic',
'requests',
'giteapy',
# FIXME: sort out what is required by nimp-cli and what could be in nimp-dne
'jira',
],
entry_points = {
'console_scripts' : [ 'nimp = nimp.nimp_cli:main' ],
},
# See list at https://pypi.python.org/pypi?:action=list_classifiers
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Build Tools',
],
keywords = 'build compile unrealengine',
)
setuptools_info = dict(
zip_safe = True,
)
setuptools.setup(**setup_info)