-
Notifications
You must be signed in to change notification settings - Fork 61
/
setup.py
73 lines (60 loc) · 2.61 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
from setuptools import setup, find_packages
import os
# Handle the long description (read from README.txt, which is created by converting README.md)
long_description = 'TsTables is a Python package to store time series data in HDF5 files using '
'PyTables. It stores time series data into daily partitions and provides functions to query for '
'subsets of data across partitions.\n'
'Its goals are to support a workflow where tons (gigabytes) of time series data are '
'appended periodically to a HDF5 file, and need to be read many times (quickly) for analytical '
'models and research.'
if os.path.exists('README.txt'):
long_description = open('README.txt').read()
exec(open('src/tstables/_version.py').read())
setup(
# Package structure
#
# find_packages searches through a set of directories
# looking for packages
packages = find_packages('src', exclude = ['*.tests', '*.tests.*', 'tests.*', 'tests']),
# package_dir directive maps package names to directories.
# package_name:package_directory
package_dir = {'': 'src'},
# Not all packages are capable of running in compressed form,
# because they may expect to be able to access either source
# code or data files as normal operating system files.
zip_safe = True,
# Entry points
#
# install the executable
entry_points = {
'console_scripts': ['tstables_benchmark = tstables.Benchmark:main']
},
# Dependencies
#
# Dependency expressions have a package name on the left-hand
# side, a version on the right-hand side, and a comparison
# operator between them, e.g. == exact version, >= this version
# or higher
install_requires = ['tables>=3.1.1', 'pandas>=0.13.1'],
# Tests
#
# Tests must be wrapped in a unittest test suite by either a
# function, a TestCase class or method, or a module or package
# containing TestCase classes. If the named suite is a package,
# any submodules and subpackages are recursively added to the
# overall test suite.
test_suite = 'tstables.tests.suite',
# Download dependencies in the current directory
tests_require = 'docutils >= 0.6',
name = "tstables",
version = __version__,
# metadata for upload to PyPI
author = "Andy Fiedler",
author_email = "[email protected]",
description = "Handles large time series using PyTables and Pandas",
license = "MIT",
keywords = "time series high frequency HDF5",
url = "http://github.com/afiedler/tstables", # project home page, if any
long_description = long_description
# could also include download_url, classifiers, etc.
)