File: setup.py

package info (click to toggle)
bibtexparser 2.0.0b5%2Breally1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 808 kB
  • sloc: python: 5,947; makefile: 141; sh: 7
file content (33 lines) | stat: -rw-r--r-- 913 bytes parent folder | download
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
#!/usr/bin/env python

try:
    from setuptools import setup
except ImportError as ex:
    print('[python-bibtexparser] setuptools not found. Falling back to distutils.core')
    from distutils.core import setup

with open('bibtexparser/__init__.py') as fh:
    for line in fh:
        if line.startswith('__version__'):
            version = line.strip().split()[-1][1:-1]
            break


def load_readme():
    with open("README.rst") as f:
        return f.read()


setup(
    name='bibtexparser',
    version=version,
    url="https://github.com/sciunto-org/python-bibtexparser",
    author="Francois Boulogne and other contributors",
    license="LGPLv3 or BSD",
    author_email="code@mweiss.ch",
    description="Bibtex parser for python 3",
    long_description_content_type="text/x-rst",
    long_description=load_readme(),
    packages=['bibtexparser'],
    install_requires=['pyparsing>=2.0.3'],
)