-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (21 loc) · 728 Bytes
/
setup.py
File metadata and controls
27 lines (21 loc) · 728 Bytes
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
import re
from setuptools import setup
from os import path
project_path = path.abspath(path.dirname(__file__))
meta_file = open(path.join(project_path, "blagh", "metadata.py")).read()
md = dict(re.findall(r"__([a-z]+)__\s*=\s*'([^']+)'", meta_file))
with open(path.join(project_path, 'README.md')) as f:
long_description = f.read()
setup(
name='blagh',
version=md['version'],
author=md['author'],
author_email=md['authoremail'],
packages=['blagh'],
url="http://github.com/ammarm08/blagh",
license='MIT',
description='Yet another blog post markup language and compiler',
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=[]
)