-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·45 lines (36 loc) · 1.2 KB
/
setup.py
File metadata and controls
executable file
·45 lines (36 loc) · 1.2 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
#!/usr/bin/env python
# encoding: utf-8
import os
import re
from setuptools import setup, find_packages
def rel_path(path):
return os.path.join(os.path.dirname(__file__), path)
def get_version():
with open(rel_path(os.path.join("paperweight", "__init__.py"))) as f:
for line in f:
if line.startswith("VERSION"):
version = re.findall(r'\"(.+?)\"', line)[0]
return version
return "0.0.0.dev"
try:
long_description = open(rel_path('README.rst'), 'rt').read()
except IOError:
long_description = ''
setup(
name='paperweight',
version=get_version(),
author='Jonathan Sick',
author_email='jonathansick@mac.com',
license='BSD',
description='Tools for hacking LaTeX documents',
long_description=long_description,
packages=find_packages(),
install_requires=['GitPython', 'pytest'],
url='https://github.com/jonathansick/paperweight',
download_url='',
classifiers=['Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Environment :: Console'],
)