-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
81 lines (69 loc) · 2.71 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
"""Pypackage's setup.py"""
import io
from setuptools import setup
from setuptools import find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
"""TestCommand subclass to use pytest with setup.py test."""
def finalize_options(self):
"""Find our package name and test options to fill out test_args."""
TestCommand.finalize_options(self)
self.test_args = ["-v", "-rx", "--cov-report", "term-missing", "--cov",
"pypackage", "test"]
self.test_suite = True
def run_tests(self):
"""pytest discovery and test execution."""
import pytest
raise SystemExit(pytest.main(self.test_args))
def long_description():
with io.open("README.rst", "r", encoding="utf-8") as openreadme:
return openreadme.read()
setup(
name="pypackage",
version="0.2.6",
author="Adam Talsma",
author_email="[email protected]",
url="http://ccpgames.github.io/pypackage",
download_url="https://github.com/ccpgames/pypackage",
description="Pypackage looks to package python without writing a setup.py",
long_description=long_description(),
packages=find_packages(exclude=["test"]),
package_data={"pypackage": ["pypackage/classifiers"]},
include_package_data=True,
install_requires=[
"wheel >= 0.24.0",
"setuptools >= 15.0",
"pytest >= 2.7.0",
"nose >= 1.3.0",
"PyYAML >= 3.0",
],
cmdclass={"test": PyTest},
tests_require=["mock", "pytest", "pytest-cov", "requests"],
entry_points={"console_scripts": [
"py-build = pypackage.commands:build",
"py-develop = pypackage.commands:develop",
"py-info = pypackage.commands:info",
"py-install = pypackage.commands:install",
"py-setup = pypackage.commands:setup",
"py-test = pypackage.commands:run_tests",
"py-clean = pypackage.commands:clean",
]},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Console :: Curses',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development',
'Topic :: Software Development :: Code Generators',
'Topic :: System :: Archiving :: Packaging',
'Topic :: System :: Installation/Setup',
'Topic :: System :: Software Distribution',
'Topic :: Utilities'
],
)