-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
46 lines (38 loc) · 1.42 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
"""Package Setup"""
import os
import re
from distutils.core import setup
from setuptools import find_packages
CURRENT_DIR = os.path.dirname(__file__)
def read(path):
with open(path, "r") as filep:
return filep.read()
def get_version(package_name):
with open(os.path.join(os.path.dirname(__file__), package_name, "__init__.py")) as fp:
for line in fp:
tokens = re.search(r'^\s*__version__\s*=\s*"(.+)"\s*$', line)
if tokens:
return tokens.group(1)
raise RuntimeError("Unable to find own __version__ string")
setup(
name="latex_proj_tool",
version=get_version("latex_proj_tool"),
license="Apache-2.0",
description="A toolset to traverse and manipulate a Latex project with multiple .tex files.",
long_description=read(os.path.join(CURRENT_DIR, "README.md")),
long_description_content_type="text/markdown",
author="Cody Yu",
author_email="comaniac0422@gmail.com",
url="https://github.com/comaniac",
keywords=[],
packages=find_packages(),
install_requires=[p for p in read("requirements.txt").split("\n") if p],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
],
)