-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.py
92 lines (78 loc) · 3.73 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
# -*- coding: utf-8 -*-
# Copyright (C) 2020 Arcadiy Ivanov <[email protected]>
#
# 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
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.integrationtest")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin("python.pycharm")
use_plugin("copy_resources")
use_plugin("filter_resources")
name = "pypi-cleanup"
version = "0.1.9.dev"
summary = "PyPI Bulk Release Version Cleanup Utility"
authors = [Author("Arcadiy Ivanov", "[email protected]")]
maintainers = [Author("Arcadiy Ivanov", "[email protected]")]
license = "Apache License, Version 2.0"
url = "https://github.com/arcivanov/pypi-cleanup"
urls = {"Bug Tracker": "https://github.com/arcivanov/pypi-cleanup/issues",
"Source Code": "https://github.com/arcivanov/pypi-cleanup",
"Documentation": "https://github.com/arcivanov/pypi-cleanup"
}
requires_python = ">=3.7"
default_task = ["analyze", "publish"]
@init
def set_properties(project):
project.depends_on("requests", "~=2.23")
project.set_property("verbose", True)
project.set_property("coverage_break_build", False)
project.set_property("flake8_break_build", True)
project.set_property("flake8_extend_ignore", "E303")
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/pypi_cleanup")
project.get_property("copy_resources_glob").append("LICENSE")
project.include_file("pypi_cleanup", "LICENSE")
project.set_property("filter_resources_target", "$dir_dist")
project.get_property("filter_resources_glob").append("pypi_cleanup/__version__.py")
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_console_scripts", ["pypi-cleanup = pypi_cleanup:main"])
project.set_property("distutils_classifiers", [
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Build Tools"])
project.set_property("distutils_setup_keywords", ["PyPI", "cleanup", "build", "dev", "tool", "release", "version"])