-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (40 loc) · 1.49 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""Pyweet's setup/installer."""
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
"""Shim in pytest to be able to use it with setup.py test."""
def finalize_options(self):
"""Stolen from http://pytest.org/latest/goodpractises.html."""
TestCommand.finalize_options(self)
self.test_args = ["-v", "-rf", "--cov", "pyweet", "test"]
self.test_suite = True
def run_tests(self):
"""Also shamelessly stolen."""
# have to import here, outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
raise SystemExit(errno)
setup(
name="pyweet",
version="0.0.6",
author="Adam Talsma",
author_email="[email protected]",
packages=["pyweet"],
install_requires=["twitter", "blessings"],
scripts=["bin/pyweet"],
url="https://github.com/a-tal/pyweet",
description="Twitter command line util",
long_description="Yet another Twitter command line utility.",
download_url="https://github.com/a-tal/pyweet",
tests_require=["pytest", "mock", "pytest-cov", "coverage"],
cmdclass={"test": PyTest},
license="BSD",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
],
)