-
Notifications
You must be signed in to change notification settings - Fork 132
/
setup.py
54 lines (48 loc) · 1.52 KB
/
setup.py
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
#!/usr/bin/env python
import setuptools
version = None
with open("bibtexparser/__init__.py") as fh:
for line in fh:
if line.startswith("__version__"):
version = line.strip().split()[-1][1:-1]
break
if not version:
raise RuntimeError("Could not determine version")
def load_readme():
with open("README.md") as f:
return f.read()
setuptools.setup(
name="bibtexparser",
version=version,
url="https://github.com/sciunto-org/python-bibtexparser",
author="Michael Weiss and other contributors",
maintainer="Michael Weiss",
license="MIT",
author_email="[email protected]",
maintainer_email="[email protected]",
description="Bibtex parser for python 3",
long_description_content_type="text/markdown",
long_description=load_readme(),
packages=setuptools.find_packages(include=["bibtexparser", "bibtexparser.*"]),
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=[
"pylatexenc>=2.10",
],
extras_require={
"test": [
"pytest", # Test runner
"pytest-xdist", # Parallel tests: `pytest -n <num-workers>`
"pytest-cov", # Code coverage
"jupyter", # For runnable examples
],
"docs": [
"sphinx",
],
},
)