Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·55 lines (44 loc) · 1.4 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·55 lines (44 loc) · 1.4 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
#!/usr/bin/python
#
# File: setup.py
#
# This file is part of the biblio-py project
#
# License:
#
# Copyright (C) 2009 Juan Fiol This is free software.
#
# You may redistribute copies of it under the terms of the GNU General Public License
# version 2 or later. There is NO WARRANTY, to the extent permitted by law.
#
# Written by Juan Fiol <juanfiol@gmail.com>
from pathlib import Path
import glob
from setuptools import setup
from yapbib.version import VERSION
def read(*rnames):
return Path(__file__).open().read()
long_description = f"{read('README.rst')}\n{read('CHANGES.txt')}"
packages = ["yapbib", "query_ads","yapbib.parsers","yapbib.formatters"]
scripts = glob.glob('scripts/*.py')
install_requires = ['pylatexenc']
python_requires = '>=3'
def setup_package():
# Rewrite the version file everytime
with Path('yapbib/version.py').open(mode='w') as fi:
fi.write(f'VERSION = "{VERSION}"')
# do the distutils setup
setup(name="biblio-py",
version=VERSION,
description="Package to manage bibliography files",
long_description=long_description,
license="GPLv2",
url="https://github.com/fiolj/biblio-py",
keywords="bibliography, bibtex, converter, html, xml, latex, parser",
author="Juan Fiol",
author_email="juanfiol@gmail.com",
packages=packages,
scripts=scripts,
)
if __name__ == '__main__':
setup_package()