Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (59 loc) · 2.42 KB
/
Copy pathsetup.py
File metadata and controls
66 lines (59 loc) · 2.42 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
setup.py for the Python packager
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
import os
import shutil
exec(open('wcon/version.py').read())
here = path.abspath(path.dirname(__file__))
readme_path = path.join(here, 'README.md')
long_description = 'See https://github.com/openworm/tracker-commons\n'
# Get the long description from the README file, and add it.
if path.exists(readme_path):
with open(readme_path, encoding='utf-8') as f:
long_description += f.read()
# The canonical wcon_schema.json lives at the repository root so it can be
# shared by every language implementation. setuptools cannot package files
# from outside the package directory, so copy it into wcon/ at build time.
repo_schema = path.join(here, '..', '..', 'wcon_schema.json')
pkg_schema = path.join(here, 'wcon', 'wcon_schema.json')
if path.exists(repo_schema):
shutil.copyfile(repo_schema, pkg_schema)
setup(
name='wcon',
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version=__version__,
description='Worm tracker Commons Object Notation',
long_description=long_description,
url='https://github.com/openworm/tracker-commons',
author='Kerr, R; Brown, A; Currie, M; OpenWorm',
author_email='ichoran@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='C. elegans worm tracking',
packages=['wcon'],
package_data={'wcon': ['wcon_schema.json']},
include_package_data=True,
install_requires=['jsonschema', 'six', 'scipy', 'pandas', 'psutil'],
# Actually also requires numpy, scipy and numpy but I don't want to force
# pip to install these since pip is bad at that for those packages.
)