forked from tflink/python-yourls
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
24 lines (22 loc) · 673 Bytes
/
setup.py
File metadata and controls
24 lines (22 loc) · 673 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
from distutils.core import setup, Command
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
errno = subprocess.call(['py.test', 'testing'])
raise SystemExit(errno)
setup(name='Yourls',
version='0.1.1',
description='Python client for the yourls URL shortener',
author='Tim Flink',
author_email='tflink@fedoraproject.org',
url='http://localhost/something',
packages=['yourls'],
package_dir={'yourls':'yourls'},
py_modules=['yourls'],
cmdclass = {'test' : PyTest}
)