-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (26 loc) · 675 Bytes
/
setup.py
File metadata and controls
34 lines (26 loc) · 675 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
28
29
30
31
32
33
34
"""
- `File`: setup.py
- `Author`: Me
- `Email`: 0
- `Github`: 0
- `Description`: A script for installing this package
"""
from distutils.core import setup
from ConfigParser import ConfigParser
SETUP_CFG_PATH = 'setup.cfg'
# Instantiate a parser for reading setup.cfg metadata
parser = ConfigParser()
parser.read(SETUP_CFG_PATH)
metadata = dict(parser.items('metadata'))
setup(
name=metadata['name'],
version=metadata['version'],
url=metadata['url'],
description=metadata['short_description'],
author=metadata['author'],
author_email=metadata['author_email'],
license=metadata['license'],
packages=[
metadata['name'],
],
)