-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
85 lines (76 loc) · 2.13 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
# -*- coding: utf-8 -*-
"""Installer for this package."""
import os
import sys
from setuptools import setup
from setuptools import find_packages
def import_path(fullpath):
"""
Import a file with full path specification. Allows one to
import from anywhere, something __import__ does not do.
"""
path, filename = os.path.split(fullpath)
filename, _ = os.path.splitext(filename)
sys.path.append(path)
module = __import__(filename)
# reload(module) # Might be out of date
del sys.path[-1]
return module
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
constants = import_path(
os.path.join(
os.path.dirname(__file__), 'src', 'tarman', 'constants'
)
)
long_description = \
read('README.rst').format(help_string=constants.HELP_STRING) + \
read('docs', 'HISTORY.rst') + \
read('docs', 'LICENSE')
setup(
name='tarman',
version="0.1.3",
description="",
long_description=long_description,
classifiers=[
"Programming Language :: Python",
"Environment :: Console :: Curses",
"Topic :: System :: Archiving",
],
keywords='tar zip archive curses',
author='Matej Cotman',
author_email='[email protected]',
url='https://github.com/matejc/tarman',
license='BSD',
packages=find_packages('src'),
package_dir={'': 'src'},
zip_safe=False,
install_requires=[
'setuptools',
],
tests_require=[
'mock',
'nose',
'unittest2'
],
entry_points={
'console_scripts': [
"tarman = tarman:main",
]
},
test_suite='nose.collector',
package_data={
'tarman':
[
'tests/testdata/testdata/a/ac',
'tests/testdata/testdata/a/ab/.abb',
'tests/testdata/testdata/a/aa/aaa',
'tests/testdata/testdata/c',
'tests/testdata/testdata/b/ba/baa/baab',
'tests/testdata/testdata/b/ba/baa/baaa/baaaa',
'tests/testdata/testdata.tar.gz',
'tests/testdata/tešt.tar',
'tests/testdata/corrupted.tar',
]
},
)