1# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5#     http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10# See the License for the specific language governing permissions and
11# limitations under the License.
12
13from __future__ import print_function
14import os
15import re
16
17from setuptools import setup, find_packages
18
19readme_filename = "README.md"
20current_directory = os.path.dirname(__file__)
21readme_path = os.path.join(current_directory, readme_filename)
22
23readme_markdown = ""
24try:
25    with open(readme_path, 'r') as f:
26        readme_markdown = f.read()
27except Exception as e:
28    print(e)
29    print("Failed to open %s" % readme_path)
30
31with open('gtfparse/__init__.py', 'r') as f:
32    version = re.search(
33        r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
34        f.read(),
35        re.MULTILINE).group(1)
36
37if __name__ == '__main__':
38    setup(
39        name='gtfparse',
40        packages=find_packages(),
41        version=version,
42        description="GTF Parsing",
43        long_description=readme_markdown,
44        long_description_content_type='text/markdown',
45        url="https://github.com/openvax/gtfparse",
46        author="Alex Rubinsteyn",
47        license="http://www.apache.org/licenses/LICENSE-2.0.html",
48        classifiers=[
49            'Development Status :: 4 - Beta',
50            'Environment :: Console',
51            'Operating System :: OS Independent',
52            'Intended Audience :: Science/Research',
53            'License :: OSI Approved :: Apache Software License',
54            'Programming Language :: Python',
55            'Topic :: Scientific/Engineering :: Bio-Informatics',
56        ],
57        install_requires=[
58            'numpy>=1.7',
59            'pandas>=0.15',
60        ],
61    )
62