-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·58 lines (50 loc) · 1.49 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
55
56
57
58
#!/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 <[email protected]>
import os
import glob
from distutils.core import setup
VERSION= '0.6.1'
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
long_description = (
read('README')
+ '\n' +
read('CHANGES.txt')
)
packages = ["yapbib","query_ads"]
scripts= glob.glob('scripts/*.py')
def setup_package():
# Rewrite the version file everytime
if os.path.exists('yapbib/version.py'): os.remove('yapbib/version.py')
fo= open('yapbib/version.py','w')
try:
fo.write('VERSION= "{0}"'.format(VERSION))
finally:
fo.close()
# do the distutils setup
setup(name="biblio-py",
version = VERSION,
description = "Package to manage bibliography files",
long_description = long_description,
license = "GPLv2",
url = "http://fisica.cab.cnea.gov.ar/colisiones/staff/fiol/biblio-py.html",
keywords= "bibliography, bibtex, converter, html, xml, latex, parser",
author = "Rodrigo Petrus Domingues",
author_email = "[email protected]",
packages = packages,
scripts = scripts,
)
if __name__ == '__main__':
setup_package()