Skip to content

Commit

Permalink
alvistack/v23.6.0
Browse files Browse the repository at this point in the history
    git clean -xdf
    tar zcvf ../python-molecule-plugins_23.6.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-molecule-plugins.spec ../python-molecule-plugins_23.6.0-1.spec
    cp ../python*-molecule-plugins*23.6.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-plugins-23.6.0
    rm -rf ../python*-molecule-plugins*23.6.0*.*

See ansible-community#155
See ansible-community#237
See ansible-community#294

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
  • Loading branch information
hswong3i committed Jan 23, 2025
1 parent 11fb13f commit 51c0f48
Show file tree
Hide file tree
Showing 32 changed files with 381 additions and 81 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
TOX_PARALLEL_NO_SPINNER: 1

steps:
- name: Switch to using Python 3.9 by default
- name: Switch to using Python 3.10 by default
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.10

- name: Install tox
run: >-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
id: generate_matrix
uses: coactions/dynamic-matrix@v1
with:
min_python: "3.9"
min_python: "3.10"
max_python: "3.12"
default_python: "3.9" # used by jobs in other_names
default_python: "3.10" # used by jobs in other_names
other_names: |
lint
pkg
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ MANIFEST
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
Expand Down Expand Up @@ -127,7 +126,6 @@ dmypy.json

# Pyre type checker
.pyre/
src/molecule_plugins/_version.py

# Ignore generated files
test/roles
Expand All @@ -138,3 +136,5 @@ patches
*.patch
*.orig
*.rej

.pybuild/
6 changes: 4 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import random
import shutil
import string
from pathlib import Path

import pytest

from molecule import config, logger, util
from molecule import config, logger
from molecule.app import get_app
from molecule.scenario import ephemeral_directory

LOG = logger.get_logger(__name__)
Expand All @@ -18,7 +20,7 @@ def run_command(cmd, env=os.environ, log=True):
if log:
cmd = _rebake_command(cmd, env)
cmd = cmd.bake(_truncate_exc=False)
return util.run_command(cmd, env=env)
return get_app(Path()).run_command(cmd, env=env)


def _rebake_command(cmd, env, out=LOG.info, err=LOG.error):
Expand Down
6 changes: 6 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.substvars
*debhelper*
.debhelper
files
python3-molecule-plugins
tmp
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python-molecule-plugins (100:23.6.0-1) UNRELEASED; urgency=medium

* https://github.com/ansible-community/molecule-plugins/releases/tag/v23.6.0

-- Wong Hoi Sing Edison <hswong3i@pantarei-design.com> Fri, 20 Dec 2024 12:45:26 +0800
41 changes: 41 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Source: python-molecule-plugins
Section: python
Priority: optional
Standards-Version: 4.5.0
Maintainer: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
Homepage: https://github.com/ansible-community/molecule-plugins/tags
Vcs-Browser: https://github.com/alvistack/ansible-community-molecule-plugins
Vcs-Git: https://github.com/alvistack/ansible-community-molecule-plugins.git
Build-Depends:
debhelper,
debhelper-compat (= 10),
dh-python,
fdupes,
python3-dev,
python3-setuptools,

Package: python3-molecule-plugins
Architecture: all
Description: Molecule Plugins
Molecule Plugins.
Depends:
${misc:Depends},
${shlibs:Depends},
${python3:Depends},
python3,
python3-docker (>= 4.3.1),
python3-jinja2 (>= 2.11.3),
python3-molecule (>= 25.1.0),
python3-openstacksdk (>= 1.1.0),
python3-requests,
python3-selinux,
python3-vagrant (>= 1.0.0),
python3-yaml (>= 5.1),
Conflicts:
python3-molecule-docker,
python3-molecule-podman,
python3-molecule-vagrant,
Replaces:
python3-molecule-docker,
python3-molecule-podman,
python3-molecule-vagrant,
21 changes: 21 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: debian/*
Copyright: 2025 Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
License: Apache-2.0

License: Apache-2.0
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.
.
The complete text of the Apache version 2.0 license
can be found in "/usr/share/common-licenses/Apache-2.0".
1 change: 1 addition & 0 deletions debian/python3-molecule-plugins.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/python*/*-packages/*
4 changes: 4 additions & 0 deletions debian/python3-molecule-plugins.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python3-molecule-plugins: copyright-without-copyright-notice
python3-molecule-plugins: initial-upload-closes-no-bugs
python3-molecule-plugins: no-manual-page
python3-molecule-plugins: zero-byte-file-in-doc-directory
15 changes: 15 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/make -f

SHELL := /bin/bash

override_dh_auto_install:
dh_auto_install --destdir=debian/tmp
find debian/tmp/usr/lib/python*/*-packages -type f -name '*.pyc' -exec rm -rf {} \;
fdupes -qnrps debian/tmp/usr/lib/python*/*-packages

override_dh_auto_test:

override_dh_auto_clean:

%:
dh $@ --buildsystem=pybuild --with python3
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
5 changes: 5 additions & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python-molecule-plugins source: file-without-copyright-information
python-molecule-plugins source: no-debian-changes
python-molecule-plugins source: source-contains-prebuilt-windows-binary
python-molecule-plugins source: source-is-missing
python-molecule-plugins source: source-package-encodes-python-version
23 changes: 9 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
[build-system]
requires = [
"setuptools >= 64.0.0", # required by pyproject+setuptools_scm integration
"setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme

]
build-backend = "setuptools.build_meta"

[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.9"
dynamic = ["version"]
requires-python = ">=3.10"
version = "23.6.0"
name = "molecule-plugins"
description = "Molecule Plugins"
readme = "README.md"
Expand All @@ -26,7 +25,6 @@ classifiers = [
"Operating System :: MacOS",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -40,7 +38,7 @@ classifiers = [
keywords = ["ansible", "testing", "molecule", "plugin"]
dependencies = [
# molecule plugins are not allowed to mention Ansible as a direct dependency
"molecule >= 6.0.0a1",
"molecule >= 25.1.0",
]

[project.urls]
Expand All @@ -52,7 +50,7 @@ changelog = "https://github.com/ansible-community/molecule-plugins/releases"
[project.optional-dependencies]
test = [
"pytest-helpers-namespace >= 2019.1.8",
"molecule[test] >= 6.0.0a1"
"molecule[test] >= 25.1.0"
]
azure = []
docker = [
Expand Down Expand Up @@ -89,7 +87,7 @@ openstack = [
]

[tool.ruff]
ignore = [
lint.ignore = [
"E501", # we use black
# we deliberately ignore these:
"EM102",
Expand All @@ -101,6 +99,7 @@ ignore = [
"B028",
"BLE",
"C901",
"COM812",
"D",
"DTZ",
"FBT",
Expand All @@ -119,15 +118,15 @@ ignore = [
"FIX002",
"TRY",
]
select = ["ALL"]
lint.select = ["ALL"]
target-version = "py39"
# Same as Black.
line-length = 88

[tool.ruff.flake8-pytest-style]
[tool.ruff.lint.flake8-pytest-style]
parametrize-values-type = "tuple"

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["molecule_plugins"]

[project.entry-points."molecule.driver"]
Expand All @@ -139,7 +138,3 @@ gce = "molecule_plugins.gce.driver:GCE"
podman = "molecule_plugins.podman.driver:Podman"
vagrant = "molecule_plugins.vagrant.driver:Vagrant"
openstack = "molecule_plugins.openstack.driver:Openstack"

[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "src/molecule_plugins/_version.py"
Loading

0 comments on commit 51c0f48

Please sign in to comment.