Skip to content

Commit

Permalink
[resoto][chore] Add files required to run setup (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias authored Dec 27, 2022
1 parent 78ffc86 commit bcb4e92
Show file tree
Hide file tree
Showing 60 changed files with 236 additions and 203 deletions.
2 changes: 2 additions & 0 deletions plugins/aws/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
12 changes: 6 additions & 6 deletions plugins/aws/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()
import pkg_resources
from setuptools import setup, find_packages


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -22,7 +22,7 @@ def read(fname):
},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
3 changes: 3 additions & 0 deletions plugins/aws_k8s/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include README.md
include requirements.txt
include requirements-test.txt
11 changes: 5 additions & 6 deletions plugins/aws_k8s/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -20,7 +19,7 @@ def read(fname):
entry_points={"resoto.plugins": ["aws_k8s_collector = resoto_plugin_aws_k8s:AWSK8sCollectorPlugin"]},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
2 changes: 2 additions & 0 deletions plugins/cleanup_aws_alarms/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
11 changes: 5 additions & 6 deletions plugins/cleanup_aws_alarms/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -20,7 +19,7 @@ def read(fname):
entry_points={"resoto.plugins": ["cleanup_aws_alarms = resoto_plugin_cleanup_aws_alarms:CleanupAWSAlarmsPlugin"]},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
2 changes: 2 additions & 0 deletions plugins/cleanup_aws_loadbalancers/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
11 changes: 5 additions & 6 deletions plugins/cleanup_aws_loadbalancers/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -24,7 +23,7 @@ def read(fname):
},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
2 changes: 2 additions & 0 deletions plugins/cleanup_aws_vpcs/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
11 changes: 5 additions & 6 deletions plugins/cleanup_aws_vpcs/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -20,7 +19,7 @@ def read(fname):
entry_points={"resoto.plugins": ["cleanup_aws_vpcs = resoto_plugin_cleanup_aws_vpcs:CleanupAWSVPCsPlugin"]},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
2 changes: 2 additions & 0 deletions plugins/cleanup_expired/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
12 changes: 5 additions & 7 deletions plugins/cleanup_expired/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -20,7 +18,7 @@ def read(fname):
entry_points={"resoto.plugins": ["cleanup_expired = resoto_plugin_cleanup_expired:CleanupExpiredPlugin"]},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
2 changes: 2 additions & 0 deletions plugins/cleanup_untagged/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
11 changes: 5 additions & 6 deletions plugins/cleanup_untagged/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -20,7 +19,7 @@ def read(fname):
entry_points={"resoto.plugins": ["cleanup_untagged = resoto_plugin_cleanup_untagged:CleanupUntaggedPlugin"]},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
2 changes: 2 additions & 0 deletions plugins/cleanup_volumes/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
11 changes: 5 additions & 6 deletions plugins/cleanup_volumes/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -20,7 +19,7 @@ def read(fname):
entry_points={"resoto.plugins": ["cleanup_volumes = resoto_plugin_cleanup_volumes:CleanupVolumesPlugin"]},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
3 changes: 3 additions & 0 deletions plugins/digitalocean/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include README.md
include requirements.txt
include requirements-test.txt
11 changes: 5 additions & 6 deletions plugins/digitalocean/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -22,7 +21,7 @@ def read(fname):
},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
3 changes: 3 additions & 0 deletions plugins/digitalocean_k8s/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include README.md
include requirements.txt
include requirements-test.txt
11 changes: 5 additions & 6 deletions plugins/digitalocean_k8s/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -22,7 +21,7 @@ def read(fname):
},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
2 changes: 2 additions & 0 deletions plugins/dockerhub/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
11 changes: 5 additions & 6 deletions plugins/dockerhub/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -20,7 +19,7 @@ def read(fname):
entry_points={"resoto.plugins": ["dockerhub = resoto_plugin_dockerhub:DockerHubCollectorPlugin"]},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
2 changes: 2 additions & 0 deletions plugins/example_collector/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
11 changes: 5 additions & 6 deletions plugins/example_collector/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -20,7 +19,7 @@ def read(fname):
entry_points={"resoto.plugins": ["example_collector = resoto_plugin_example_collector:ExampleCollectorPlugin"]},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
2 changes: 2 additions & 0 deletions plugins/gcp/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
11 changes: 5 additions & 6 deletions plugins/gcp/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import pkg_resources
from setuptools import setup, find_packages

with open("requirements.txt") as f:
requirements = f.read().splitlines()


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(file_name: str) -> str:
with open(os.path.join(os.path.dirname(__file__), file_name)) as of:
return of.read()


setup(
Expand All @@ -20,7 +19,7 @@ def read(fname):
entry_points={"resoto.plugins": ["gcp = resoto_plugin_gcp:GCPCollectorPlugin"]},
include_package_data=True,
zip_safe=False,
install_requires=requirements,
install_requires=[str(requirement) for requirement in pkg_resources.parse_requirements(read("requirements.txt"))],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
Expand Down
2 changes: 2 additions & 0 deletions plugins/github/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
Loading

0 comments on commit bcb4e92

Please sign in to comment.