forked from jonathansick/preprint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·82 lines (60 loc) · 1.93 KB
/
setup.py
File metadata and controls
executable file
·82 lines (60 loc) · 1.93 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env python
import os
import re
from setuptools import setup, find_packages, Command
# from setuptools.core import setup, Command
# you can also import from setuptools
def rel_path(path):
return os.path.join(os.path.dirname(__file__), path)
def get_version():
with open(rel_path(os.path.join("preprint", "main.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.md'), 'rt').read()
except IOError:
long_description = ''
setup(
name='preprint3',
version=get_version(),
description='Tools for writing latex papers',
long_description=long_description,
long_description_content_type='text/markdown',
author='Jonathan Sick',
author_email='jonathansick@mac.com',
url='https://github.com/jonathansick/preprint',
download_url='',
classifiers=['Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Environment :: Console',
],
platforms=['Any'],
scripts=[],
provides=[],
install_requires=['cliff',
'watchdog',
'GitPython',
'pytest',
'TexSoup'],
namespace_packages=[],
packages=find_packages(),
include_package_data=True,
entry_points={
'console_scripts': [
'preprint = preprint.main:main'
],
'preprint.commands': [
'init = preprint.init:Init',
'make = preprint.make:Make',
'watch = preprint.watch:Watch',
'diff = preprint.latexdiff:Diff',
'pack = preprint.pack:Package',
],
},
zip_safe=False,
)