-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.py
98 lines (80 loc) · 3.84 KB
/
build.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# -*- coding: utf-8 -*-
# Copyright 2019 Karellen, Inc. and contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from pybuilder.core import (use_plugin, init, Author, before, Dependency)
use_plugin("python.core")
use_plugin("python.integrationtest")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin("python.pycharm")
use_plugin("python.coveralls")
use_plugin("copy_resources")
name = "geventmp"
version = "0.0.9.dev"
summary = "Multiprocessing Gevent Extension"
authors = [Author("Karellen, Inc.", "[email protected]")]
maintainers = [Author("Arcadiy Ivanov", "[email protected]")]
url = "https://github.com/karellen/geventmp"
urls = {
"Bug Tracker": "https://github.com/karellen/geventmp/issues",
"Source Code": "https://github.com/karellen/geventmp/",
"Documentation": "https://github.com/karellen/geventmp/"
}
license = "Apache License, Version 2.0"
requires_python = ">3.6"
default_task = ["analyze", "publish"]
@init
def set_properties(project):
project.set_property_if_unset("gevent_version", ">=24.10.0")
project.depends_on("gevent", project.get_property("gevent_version"))
project.set_property("coverage_break_build", False)
project.set_property("integrationtest_inherit_environment", True)
project.set_property("flake8_break_build", True)
project.set_property("flake8_extend_ignore", "E303,E402")
project.set_property("flake8_include_test_sources", True)
project.set_property("flake8_include_scripts", True)
project.set_property("flake8_max_line_length", 130)
project.set_property("copy_resources_target", "$dir_dist/geventmp")
project.get_property("copy_resources_glob").append("LICENSE")
project.include_file("geventmp", "LICENSE")
project.set_property("distutils_readme_description", True)
project.set_property("distutils_description_overwrite", True)
project.set_property("distutils_upload_skip_existing", True)
project.set_property("distutils_setup_keywords", ["gevent", "multiprocessing", "mp", "monkey"])
project.set_property("distutils_readme_file", "README.rst")
project.set_property("distutils_readme_file_type", "text/x-rst")
project.set_property("distutils_readme_file_encoding", "UTF-8")
project.set_property("distutils_entry_points", {
"gevent.plugins.monkey.will_patch_all": ["geventmp = geventmp.monkey:_patch_mp"]
})
project.set_property("distutils_classifiers", [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
"Development Status :: 4 - Beta"
])
@before("run_integration_tests", only_once=True)
def install_for_tests(project, logger, reactor):
reactor.python_env_registry["test"].install_dependencies([Dependency(project.expand_path("$dir_dist"))])