-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (48 loc) · 1.82 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import setuptools
import setuptools.command.build_py
def _make_long_description():
with open(os.path.join(os.path.dirname(__file__), "README.md"), "r") as _stream: return _stream.read()
def _make_packages():
_packages = setuptools.find_namespace_packages(where = "src")
_packages.remove("p5")
return _packages
class _Generators(object):
@classmethod
def get(cls): return tuple()
class _Commands(object):
@staticmethod
def build_py():
class _Result(setuptools.command.build_py.build_py):
def run(self):
# noinspection PyNoneFunctionAssignment
_original_result = super().run()
for _generator in _Generators.get(): _generator(command_interface = self)
return _original_result
def get_outputs(self, *args, **kwargs):
_original_result = super().get_outputs(*args, **kwargs)
return (type(_original_result))((*_original_result, *[os.path.join(self.build_lib, _generated.path) for _generated in _Generators.get()]))
return _Result
setuptools.setup(
name = "p5.aiogoldsrcrcon",
url = "https://github.com/p5-vbnekit/p5-python3-aiogoldsrcrcon",
license = "",
version = "0.0.3",
author = "Nikita Pushchin",
author_email = "vbnekit@gmail.com",
description = "asyncio rcon client for GoldSrc engine",
long_description = _make_long_description(),
long_description_content_type = "text/markdown",
package_dir = {"": "src"},
packages = _make_packages(),
cmdclass = {
"build_py": _Commands.build_py()
},
entry_points = {
"console_scripts": ('p5-aiogoldsrcrcon=p5.aiogoldsrcrcon:entry_point', ),
},
install_requires = ("asyncio", ),
setup_requires = ("wheel", )
)