Updates making pypi upload possible
Change-Id: I7a861287c1d2515cd1a43c343437b3e6134956f9
This commit is contained in:
parent
266c195b83
commit
76f61dec1a
15
MANIFEST.in
15
MANIFEST.in
@ -1,21 +1,6 @@
|
||||
include pybuild/templates/*.html
|
||||
include pybuild/static_code/DIDApiTL/*
|
||||
include pybuild/static_code/DIDApiEC/*
|
||||
include pybuild/static_code/bosch_headers/*
|
||||
include pybuild/static_code/csp_headers/*
|
||||
include pybuild/static_code/denso_headers/*
|
||||
include pybuild/static_code/hi_headers/*
|
||||
include pybuild/static_code/BoschCoreAPIEC/*
|
||||
include pybuild/static_code/BoschCoreAPITL/*
|
||||
include pybuild/static_code/CSPCoreAPITL/*
|
||||
include pybuild/static_code/CSPCoreAPIEC/*
|
||||
include pybuild/static_code/DensoCoreAPIEC/*
|
||||
include pybuild/static_code/DensoCoreAPITL/*
|
||||
include test-requirements.txt
|
||||
include pybuild/matlab_scripts/CodeGen/*
|
||||
include pybuild/matlab_scripts/helperFunctions/*
|
||||
include pybuild/matlab_scripts/*
|
||||
include requirements.txt
|
||||
prune pybuild/test
|
||||
prune pybuild/interface/test
|
||||
prune pybuild/lib/test
|
||||
|
5
playbooks/upload-pypi.yaml
Normal file
5
playbooks/upload-pypi.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- role: ensure-twine
|
||||
- role: upload-pypi
|
||||
when: zuul_success | bool
|
@ -1,5 +1,5 @@
|
||||
gitpython >= 3.1.8
|
||||
pbr >= 5.5.0
|
||||
pbr >= 6.0.0
|
||||
ruamel.yaml.clib == 0.2.7; python_version == "3.6"
|
||||
ruamel.yaml == 0.17.21; python_version == "3.6"
|
||||
ruamel.yaml == 0.18.6; python_version > "3.6"
|
||||
|
@ -1,8 +1,8 @@
|
||||
[metadata]
|
||||
name = pt-pybuild
|
||||
name = powertrain-build
|
||||
author = Henrik Wahlqvist
|
||||
author-email = henrik.wahlqvist@volvocars.com
|
||||
summary = A Continuous Integration (CI) build system testing all configurations where a TargetLink model is used.
|
||||
summary = A Continuous Integration (CI) build system testing all configurations where a Simulink model is used.
|
||||
description-file = README.md
|
||||
description-content-type = text/x-rst; charset=UTF-8
|
||||
license = Apache License, Version 2.0
|
||||
@ -21,6 +21,7 @@ classifier =
|
||||
|
||||
[options]
|
||||
include_package_data = True
|
||||
requires_python = >=3.6, <3.11
|
||||
|
||||
[files]
|
||||
packages =
|
||||
|
9
setup.py
9
setup.py
@ -1,14 +1,11 @@
|
||||
# Copyright 2024 Volvo Car Corporation
|
||||
# Licensed under Apache 2.0.
|
||||
|
||||
"""Create a python package for pybuild."""
|
||||
"""Create a python package for powertrain-build using setuptools and PBR."""
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
setup_requires=['pbr>=5.5.0'],
|
||||
setup_requires=['pbr'],
|
||||
pbr=True,
|
||||
python_requires='>=3.6, <3.11',
|
||||
include_package_data=True,
|
||||
|
||||
)
|
||||
|
@ -1,9 +1,12 @@
|
||||
- project:
|
||||
check:
|
||||
jobs:
|
||||
- powertrain-build-tox
|
||||
- noop
|
||||
- powertrain-build-tox
|
||||
gate:
|
||||
jobs:
|
||||
- powertrain-build-tox
|
||||
- noop
|
||||
- powertrain-build-tox
|
||||
release:
|
||||
jobs:
|
||||
- release-powertrain-build
|
||||
|
@ -1,13 +1,12 @@
|
||||
- job:
|
||||
name: release-powertrain-build
|
||||
parent: python-upload-pypi
|
||||
parent: build-python-release
|
||||
description: Generate and upload a python source tarball and binary wheel for powertrain-build.
|
||||
post-run: playbooks/upload-pypi.yaml
|
||||
vars:
|
||||
release_python: python3
|
||||
twine_python: python3
|
||||
secrets:
|
||||
- name: pypi_info
|
||||
secret: powertrain-build-pypi
|
||||
|
||||
- job:
|
||||
name: temp-failing-job
|
||||
run: playbooks/failing-job.yaml
|
||||
pass-to-parent: true
|
||||
|
Loading…
Reference in New Issue
Block a user