forked from facebookarchive/fbtftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (44 loc) · 1.76 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
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from os import path
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
# Inspired by the example at https://pytest.org/latest/goodpractises.html
class NoseTestCommand(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# Run nose ensuring that argv simulates running nosetests directly
import nose
nose.run_exit(argv=["nosetests"])
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fbtftp",
version="0.2",
description="A python3 framework to build dynamic TFTP servers",
long_description=long_description,
author="Angelo Failla",
author_email="pallotron@fb.com",
license="BSD",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT icense",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: System :: Boot",
"Topic :: Utilities",
"Intended Audience :: Developers",
],
keywords="tftp daemon infrastructure provisioning netboot",
url="https://github.com/facebook/fbtftp",
packages=find_packages(exclude=["tests"]),
tests_require=["nose", "coverage", "mock"],
cmdclass={"test": NoseTestCommand},
)