Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 67 lines (58 sloc) 1.709 kB
35cfa6d minimal setup to get into pythonpath
James Casbon authored
1 from setuptools import setup
bc8c85e use ordered dict for samples, fixes #2
James Casbon authored
2
3 requires = []
4
49e2e57 fix argparse requirement for python < 2.6
James Casbon authored
5 # python 2.6 does not have argparse
6 try:
7 import argparse
8 except ImportError:
b59b6f7 argparse for python < 2.7
James Casbon authored
9 requires.append('argparse')
35cfa6d minimal setup to get into pythonpath
James Casbon authored
10
ad9d9a2 use ordereddict for headers
James Casbon authored
11
12 try:
13 import collections
14 collections.OrderedDict
15 except AttributeError:
16 requires.append('ordereddict')
17
89daaa9 setup.py without import
James Casbon authored
18 # get the version without an import
19 VERSION = "Undefined"
20 DOC = ""
21 inside_doc = False
22 for line in open('vcf/__init__.py'):
23 if "'''" in line:
24 inside_doc = not inside_doc
25 if inside_doc:
26 DOC += line.replace("'''", "")
27
28 if (line.startswith('VERSION')):
29 exec(line.strip())
30
49e2e57 fix argparse requirement for python < 2.6
James Casbon authored
31
35cfa6d minimal setup to get into pythonpath
James Casbon authored
32 setup(
33 name='PyVCF',
c240e10 convert tests so they are runnable with 2to3, need to include test da…
James Casbon authored
34 packages=['vcf', 'vcf.test'],
cd8c710 introduce vcf package structure
James Casbon authored
35 scripts=['scripts/vcf_melt', 'scripts/vcf_filter.py'],
9fcf4f6 add FILTERS.md
James Casbon authored
36 author='James Casbon and @jdoughertyii',
60625ba add meta to setup.py, note about fork to README
James Casbon authored
37 author_email='casbon@gmail.com',
cb00f47 @marcelm use_2to3 in setup.py, mostly completing Python 3 support.
marcelm authored
38 description='Variant Call Format (VCF) parser for Python',
89daaa9 setup.py without import
James Casbon authored
39 long_description=DOC,
c240e10 convert tests so they are runnable with 2to3, need to include test da…
James Casbon authored
40 test_suite='vcf.test.test_vcf.suite',
cb00f47 @marcelm use_2to3 in setup.py, mostly completing Python 3 support.
marcelm authored
41 install_requires=['distribute'],
7f7b7bd initial work on an extensible VCF filter
James Casbon authored
42 requires=requires,
43 entry_points = {
44 'vcf.filters': [
cd8c710 introduce vcf package structure
James Casbon authored
45 'site_quality = vcf.filters:SiteQuality',
46 'vgq = vcf.filters:VariantGenotypeQuality',
7f7b7bd initial work on an extensible VCF filter
James Casbon authored
47 ]
9fcf4f6 add FILTERS.md
James Casbon authored
48 },
c0c7d16 version bump
James Casbon authored
49 url='https://github.com/jamescasbon/PyVCF',
89daaa9 setup.py without import
James Casbon authored
50 version=VERSION,
3811a81 update version to 0.3.0, doc improvements, fixes issue #16
James Casbon authored
51 classifiers = [
ad9d9a2 use ordereddict for headers
James Casbon authored
52 'Development Status :: 4 - Beta',
3811a81 update version to 0.3.0, doc improvements, fixes issue #16
James Casbon authored
53 'Intended Audience :: Developers',
54 'Intended Audience :: Science/Research',
55 'Operating System :: OS Independent',
56 'Programming Language :: Python',
cb00f47 @marcelm use_2to3 in setup.py, mostly completing Python 3 support.
marcelm authored
57 'Programming Language :: Python :: 3',
3811a81 update version to 0.3.0, doc improvements, fixes issue #16
James Casbon authored
58 'Topic :: Scientific/Engineering',
59 ],
60 keywords='bioinformatics',
cb00f47 @marcelm use_2to3 in setup.py, mostly completing Python 3 support.
marcelm authored
61 use_2to3=True,
c240e10 convert tests so they are runnable with 2to3, need to include test da…
James Casbon authored
62 include_package_data=True,
63 package_data = {
1b29ce7 include tabix index for tests
James Casbon authored
64 '': ['*.vcf', '*.gz', '*.tbi'],
c240e10 convert tests so they are runnable with 2to3, need to include test da…
James Casbon authored
65 }
35cfa6d minimal setup to get into pythonpath
James Casbon authored
66 )
Something went wrong with that request. Please try again.