Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move samba provider to new structure #46080

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/boring-cyborg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,7 @@ labelPRBasedOnFilePath:
- providers/tests/system/salesforce/**/*

provider:samba:
- providers/src/airflow/providers/samba/**/*
- docs/apache-airflow-providers-samba/**/*
- providers/tests/samba/**/*
- providers/samba/**

provider:segment:
- providers/segment/**
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ apache-airflow-providers-openai
apache-airflow-providers-pgvector
apache-airflow-providers-pinecone
apache-airflow-providers-postgres
apache-airflow-providers-samba
apache-airflow-providers-segment
apache-airflow-providers-ssh
apache-airflow-providers-standard
Expand Down
25 changes: 0 additions & 25 deletions docs/apache-airflow-providers-samba/changelog.rst

This file was deleted.

81 changes: 81 additions & 0 deletions providers/samba/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@

.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.

.. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!

.. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
`PROVIDER_README_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY


Package ``apache-airflow-providers-samba``

Release: ``4.9.0``


`Samba <https://www.samba.org/>`__


Provider package
----------------

This is a provider package for ``samba`` provider. All classes for this provider package
are in ``airflow.providers.samba`` python package.

You can find package information and changelog for the provider
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-samba/4.9.0/>`_.

Installation
------------

You can install this package on top of an existing Airflow 2 installation (see ``Requirements`` below
for the minimum Airflow version supported) via
``pip install apache-airflow-providers-samba``

The package supports the following python versions: 3.9,3.10,3.11,3.12

Requirements
------------

================== ==================
PIP package Version required
================== ==================
``apache-airflow`` ``>=2.9.0``
``smbprotocol`` ``>=1.5.0``
================== ==================

Cross provider package dependencies
-----------------------------------

Those are dependencies that might be needed in order to use all the features of the package.
You need to install the specified provider packages in order to use them.

You can install such cross-provider dependencies when installing from PyPI. For example:

.. code-block:: bash

pip install apache-airflow-providers-samba[google]


==================================================================================================== ==========
Dependent package Extra
==================================================================================================== ==========
`apache-airflow-providers-google <https://airflow.apache.org/docs/apache-airflow-providers-google>`_ ``google``
==================================================================================================== ==========

The changelog for the provider package can be found in the
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-samba/4.9.0/changelog.html>`_.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Copying a single file

The following Operator copies a single file.

.. exampleinclude:: /../../providers/tests/system/samba/example_gcs_to_samba.py
.. exampleinclude:: /../../providers/samba/tests/system/samba/example_gcs_to_samba.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcs_to_samba_copy_single_file]
Expand All @@ -55,7 +55,7 @@ To move the file use the ``move_object`` parameter. Once the file is copied to S
the original file from the Google Storage is deleted. The ``destination_path`` parameter defines the
full path of the file on the Samba server.

.. exampleinclude:: /../../providers/tests/system/samba/example_gcs_to_samba.py
.. exampleinclude:: /../../providers/samba/tests/system/samba/example_gcs_to_samba.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcs_to_samba_move_single_file_destination]
Expand All @@ -67,7 +67,7 @@ Copying a directory

Use the ``wildcard`` in ``source_path`` parameter to copy a directory.

.. exampleinclude:: /../../providers/tests/system/samba/example_gcs_to_samba.py
.. exampleinclude:: /../../providers/samba/tests/system/samba/example_gcs_to_samba.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcs_to_samba_copy_directory]
Expand All @@ -79,7 +79,7 @@ Moving specific files
Use the ``wildcard`` in ``source_path`` parameter to move the specific files.
The ``destination_path`` defines the path that is prefixed to all copied files.

.. exampleinclude:: /../../providers/tests/system/samba/example_gcs_to_samba.py
.. exampleinclude:: /../../providers/samba/tests/system/samba/example_gcs_to_samba.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcs_to_samba_move_specific_files]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,10 @@ versions:
- 1.0.1
- 1.0.0

dependencies:
- apache-airflow>=2.9.0
- smbprotocol>=1.5.0

integrations:
- integration-name: Samba
external-doc-url: https://www.samba.org/
logo: /integration-logos/samba/Samba.png
logo: /docs/integration-logos/Samba.png
tags: [protocol]

hooks:
Expand Down
85 changes: 85 additions & 0 deletions providers/samba/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.

# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!

# IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
[build-system]
requires = ["flit_core==3.10.1"]
build-backend = "flit_core.buildapi"

[project]
name = "apache-airflow-providers-samba"
version = "4.9.0"
description = "Provider package apache-airflow-providers-samba for Apache Airflow"
readme = "README.rst"
authors = [
{name="Apache Software Foundation", email="[email protected]"},
]
maintainers = [
{name="Apache Software Foundation", email="[email protected]"},
]
keywords = [ "airflow-provider", "samba", "airflow", "integration" ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Framework :: Apache Airflow",
"Framework :: Apache Airflow :: Provider",
"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",
"Topic :: System :: Monitoring",
]
requires-python = "~=3.9"

# The dependencies should be modified in place in the generated file
# Any change in the dependencies is preserved when the file is regenerated
dependencies = [
"apache-airflow>=2.9.0",
"smbprotocol>=1.5.0",
]

# The optional dependencies should be modified in place in the generated file
# Any change in the dependencies is preserved when the file is regenerated
[project.optional-dependencies]
"google" = [
"apache-airflow-providers-google"
]

[project.urls]
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-samba/4.9.0"
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-samba/4.9.0/changelog.html"
"Bug Tracker" = "https://github.com/apache/airflow/issues"
"Source Code" = "https://github.com/apache/airflow"
"Slack Chat" = "https://s.apache.org/airflow-slack"
"Twitter" = "https://x.com/ApacheAirflow"
"YouTube" = "https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/"

[project.entry-points."apache_airflow_provider"]
provider_info = "airflow.providers.samba.get_provider_info:get_provider_info"

[tool.flit.module]
name = "airflow.providers.samba"

[tool.pytest.ini_options]
ignore = "tests/system/"
Loading