This repository has been archived by the owner on Nov 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (52 loc) · 1.58 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
from sys import exit, version
from setuptools import setup
import bagit
if version < '2.6.0':
print("python 2.6 or higher 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")
version = bagit.VERSION
setup(
name = 'bagit',
use_scm_version=True,
url = 'https://libraryofcongress.github.io/bagit-python/',
author = 'Ed Summers',
author_email = 'ehs@pobox.com',
py_modules = ['bagit',],
scripts = ['bagit.py'],
description = description,
platforms = ['POSIX'],
test_suite = 'test',
setup_requires=['setuptools_scm'],
tests_require=['mock'],
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.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)