forked from eyurtsev/fcsparser
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (52 loc) · 1.82 KB
/
setup.py
File metadata and controls
66 lines (52 loc) · 1.82 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
import re
import fnmatch
import os
from setuptools import setup, find_packages
def get_package_version(path):
'''Extracts the version'''
with open(VERSION_FILE, "rt") as f:
verstrline = f.read()
VERSION = r"^version = ['\"]([^'\"]*)['\"]"
results = re.search(VERSION, verstrline, re.M)
if results:
version = results.group(1)
else:
raise RuntimeError("Unable to find version string in {}.".format(path))
return version
def get_fcs_files():
matches = []
for root, dirnames, filenames in os.walk('fcsparser'):
for filename in fnmatch.filter(filenames, '*.fcs'):
matches.append(os.path.join(root, filename))
return matches
VERSION_FILE = "fcsparser/_version.py"
version = get_package_version(VERSION_FILE)
with open('README.rst', 'r') as f:
README_content = f.read()
setup(
name='fcsparser',
version=version,
description='A python package for reading raw fcs files',
author='Eugene Yurtsev',
author_email='eyurtsev@gmail.com',
url='https://github.com/eyurtsev/fcsparser',
download_url='https://github.com/eyurtsev/fcsparser/archive/v{0}.zip'.format(version),
keywords=['flow cytometry', 'data analysis', 'cytometry', 'parser', 'data'],
license='MIT',
install_requires=[
"setuptools",
"pandas"
],
classifiers=[
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 2',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
],
long_description=README_content,
include_package_data=True,
packages=find_packages(exclude=["*.tests",
"*.tests.*",
"tests.*",
"tests"])
)