Skip to content

Commit 99015af

Browse files
author
Devyn Stott
committed
chore(python): Add setup.py so this can be installed
1 parent 2a924f1 commit 99015af

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

setup.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# -*- coding: utf-8 -*-
2+
3+
4+
"""setup.py: setuptools control."""
5+
6+
import re
7+
from setuptools import setup, find_packages
8+
9+
version = re.search(
10+
'^__version__\s*=\s*"(.*)"',
11+
open('starter/starter.py').read(),
12+
re.M
13+
).group(1)
14+
15+
setup(
16+
name="python-starter",
17+
packages=find_packages(),
18+
entry_points={
19+
"console_scripts": ['start_example = starter.__main__:main']
20+
},
21+
version=version,
22+
description="Python command line application bare bones template."
23+
)

0 commit comments

Comments
 (0)