/
setup.py
46 lines (42 loc) · 1.6 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
import os
from setuptools import setup, find_packages
# package description and keywords
description = 'Python-based tools for managing bibliographies using BibTeX'
keywords = 'bibliographies, bibtex, reference management'
# get long_description from README.rst
with open("README.rst", mode="r", encoding="utf8") as fh:
long_description = fh.read()
long_description_content_type = "text/x-rst"
# get version
with open('version.txt', mode="r", encoding="utf8") as fh:
version = fh.read()
# list of all scripts to be included with package
scripts=[os.path.join('src',f) for f in os.listdir('src') if f.endswith('.py')]
scripts.append(os.path.join('reference_toolkit','gen_citekeys.py'))
setup(
name='reference-toolkit',
version=version,
description=description,
long_description=long_description,
long_description_content_type=long_description_content_type,
url='https://github.com/tsutterley/reference-toolkit',
author='Tyler Sutterley',
author_email='tsutterl@uw.edu',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Physics',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
keywords=keywords,
packages=find_packages(),
install_requires=['future'],
scripts=scripts,
include_package_data=True,
)