forked from LibraryOfCongress/bagit-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (45 loc) · 1.34 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
from sys import version, exit
from setuptools import setup
if version < '2.4.0' or version > '3.0.0':
print "python 2.4 - 2.7 is required"
exit(1)
description = \
"""
This package can be used to create BagIt style packages of
digital content for safe transmission and digital preservation.
See: http://en.wikipedia.org/wiki/BagIt for more details.
"""
# for older pythons ...
requirements = []
try:
import multiprocessing
except:
requirements.append("multiprocessing")
try:
import hashlib
except:
requirements.append("hashlib")
setup(
name = 'bagit',
version = '1.3.2',
url = 'http://github.com/LibraryOfCongress/bagit-python',
author = 'Ed Summers',
author_email = '[email protected]',
py_modules = ['bagit',],
scripts = ['bagit.py'],
description = description,
platforms = ['POSIX'],
test_suite = 'test',
install_requires = requirements,
classifiers = [
'License :: Public Domain',
'Intended Audience :: Developers',
'Topic :: Communications :: File Sharing',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Filesystems',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7'
],
)