-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
87 lines (80 loc) · 2.98 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
"""
Sample project to be edited.
"""
from pip.req import parse_requirements
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys
import os
# Workaround for development under Vagrant using vbox shared directories
# Hard links aren't allowed which breaks setup.
# Is a quick hack that fixes the issue just under vagrant with vbox
# From stackoverflow:
# https://stackoverflow.com/questions/7719380/python-setup-py-sdist-error-operation-not-permitted
# if you are not using vagrant, just delete os.link directly,
# The hard link only saves a little disk space, so you should not care
if os.environ.get('USER','') == 'vagrant':
del os.link
class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
import shlex
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
errno = tox.cmdline(args=args)
sys.exit(errno)
dependencies = ['click==4.1', 'rdflib-jsonld', 'orcid', 'pyparsing', 'pytz',
'requests', 'docker-py', 'py-cpuinfo']
setup(
name='smartcontainers',
version='0.0.2',
url='https://github.com/charlesvardeman/smartcontainers',
license='Apache Software License',
author='Charles Vardeman',
author_email='[email protected]',
description='Tool to track provenance of docker containers',
long_description=__doc__,
packages=find_packages(exclude=['tests', 'docs', 'scripts', 'resources']),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=dependencies,
tests_require=['tox'],
cmdclass = {'test': Tox},
entry_points={
'console_scripts': [
'sc= sc.cli:cli',
],
},
classifiers=[
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
# 'Development Status :: 1 - Planning',
'Development Status :: 2 - Pre-Alpha',
# 'Development Status :: 3 - Alpha',
# 'Development Status :: 4 - Beta',
# 'Development Status :: 5 - Production/Stable',
# 'Development Status :: 6 - Mature',
# 'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Operating System :: Unix',
'Operating System :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)