forked from dmgbuild/dmgbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (58 loc) · 1.83 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
# -*- coding: 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 = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
with open('README.rst', 'rb') as f:
long_desc = f.read().decode('utf-8')
# We have to be able to install on Linux to build the docs, even though
# dmgbuild presently won't work there because there's no SetFile
requires=['ds_store >= 1.1.0',
'mac_alias >= 2.0.1']
# On Python <3.4, we need biplist
if sys.version_info < (3, 4):
requires.append('biplist >= 0.6')
if sys.version_info.major == 2:
tests_require = ['pytest == 3.6.4',
'py == 1.10.0',
'more_itertools == 4.0.0']
else:
tests_require = ['pytest']
setup(name='dmgbuild',
version='1.5.2',
description='macOS command line utility to build disk images',
long_description=long_desc,
author='Alastair Houghton',
author_email='[email protected]',
url='http://alastairs-place.net/projects/dmgbuild',
license='MIT License',
platforms='darwin',
packages=['dmgbuild'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Topic :: Desktop Environment',
],
package_data = {
'dmgbuild': ['resources/*']
},
entry_points = {
'console_scripts': [
'dmgbuild = dmgbuild.__main__:main'
],
},
install_requires=requires,
tests_require=tests_require,
cmdclass={
'test': PyTest
},
provides=['dmgbuild']
)