-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (29 loc) · 1.04 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
import os
import re
try:
from setuptools import find_packages, setup
except ImportError:
from distutils.core import find_packages, setup
base_dir = os.path.dirname(os.path.abspath(__file__))
def get_version(filename="jrnl/contrib/exporter/rot13.py"):
with open(os.path.join(base_dir, filename), encoding="utf-8") as initfile:
for line in initfile.readlines():
m = re.match("__version__ *= *['\"](.*)['\"]", line)
if m:
return m.group(1)
setup(
name="jrnl-rot13",
version=get_version(),
description="Demonstration custom exporter for jrnl",
long_description="\n\n".join([open(os.path.join(base_dir, "README.md")).read()]),
long_description_content_type="text/markdown",
author="W. Minchin",
author_email="[email protected]",
url="https://github.com/MinchinWeb/jrnl-rot13-exporter",
packages=["jrnl", "jrnl.contrib", "jrnl.contrib.exporter"],
include_package_data=True,
install_requires=[
"jrnl",
],
zip_safe=False, # use wheels instead
)