dda-devops-build/build.py

79 lines
3.3 KiB
Python
Raw Normal View History

2019-09-06 10:10:10 +00:00
# dda_devops_build
2019-09-04 16:40:41 +00:00
# Copyright 2019 meissa GmbH.
#
# 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 init, use_plugin, Author
use_plugin("python.core")
2020-03-12 13:10:16 +00:00
use_plugin("copy_resources")
2019-09-06 10:10:10 +00:00
use_plugin("filter_resources")
2019-09-04 16:40:41 +00:00
#use_plugin("python.unittest")
#use_plugin("python.coverage")
use_plugin("python.distutils")
2019-09-06 10:10:10 +00:00
#use_plugin("python.install_dependencies")
2019-09-04 16:40:41 +00:00
default_task = "publish"
2019-09-06 10:10:10 +00:00
name = "ddadevops"
2022-05-20 09:12:33 +00:00
version = "0.15.2"
2019-09-04 16:40:41 +00:00
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
description = __doc__
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
url = "https://github.com/DomainDrivenArchitecture/dda-devops-build"
2020-03-05 11:08:50 +00:00
requires_python = ">=2.7,!=3.0,!=3.1,!=3.2,!=3.3,!=3.4,<3.9"
2019-09-04 16:40:41 +00:00
license = "Apache Software License"
@init
def initialize(project):
#project.build_depends_on('mockito')
#project.build_depends_on('unittest-xml-reporting')
2019-09-06 10:10:10 +00:00
project.set_property("verbose", True)
2020-03-12 13:10:16 +00:00
project.get_property("filter_resources_glob").append("main/python/ddadevops/__init__.py")
2019-09-06 10:10:10 +00:00
#project.set_property("dir_source_unittest_python", "src/unittest/python")
2020-03-12 13:10:16 +00:00
project.set_property("copy_resources_target", "$dir_dist/ddadevops")
project.get_property("copy_resources_glob").append("LICENSE")
project.get_property("copy_resources_glob").append("src/main/resources/terraform/*")
2020-04-17 19:57:21 +00:00
project.get_property("copy_resources_glob").append("src/main/resources/docker/image/resources/*")
2020-03-12 13:10:16 +00:00
project.include_file("ddadevops", "LICENSE")
project.include_file("ddadevops", "src/main/resources/terraform/*")
2020-04-17 19:57:21 +00:00
project.include_file("ddadevops", "src/main/resources/docker/image/resources/*")
2019-09-06 10:10:10 +00:00
2019-09-04 16:40:41 +00:00
#project.set_property('distutils_upload_sign', True)
#project.set_property('distutils_upload_sign_identity', '')
2019-09-06 10:10:10 +00:00
project.set_property("distutils_readme_description", True)
project.set_property("distutils_description_overwrite", True)
2019-09-04 16:40:41 +00:00
project.set_property("distutils_classifiers", [
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
2020-03-05 11:08:50 +00:00
'Programming Language :: Python :: 3.5',
2019-10-22 07:29:07 +00:00
'Programming Language :: Python :: 3.6',
2019-09-06 10:10:10 +00:00
'Programming Language :: Python :: 3.7',
2020-03-05 11:08:50 +00:00
'Programming Language :: Python :: 3.8',
'Operating System :: POSIX :: Linux',
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
2019-09-06 10:10:10 +00:00
'Topic :: Software Development :: Build Tools',
2020-03-05 11:08:50 +00:00
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing'
2019-09-06 10:10:10 +00:00
])