port-ocean 0.4.7__py3-none-any.whl → 0.4.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,14 @@ from port_ocean.cli.utils import cli_root_path
9
9
 
10
10
  @cli_start.command()
11
11
  @click.argument("path", default=".", type=click.Path(exists=True))
12
- def new(path: str) -> None:
12
+ @click.option(
13
+ "--remove-docker-files",
14
+ "remove_docker_files",
15
+ is_flag=True,
16
+ default=False,
17
+ help="Remove Docker files from the generated project. (Used for contributing to Ocean)",
18
+ )
19
+ def new(path: str, remove_docker_files: bool) -> None:
13
20
  """
14
21
  Scaffold a new integration in the given PATH.
15
22
 
@@ -24,6 +31,9 @@ def new(path: str) -> None:
24
31
  result = cookiecutter(
25
32
  f"{cli_root_path}/cookiecutter",
26
33
  output_dir=path,
34
+ extra_context={
35
+ "remove_docker_files": remove_docker_files,
36
+ },
27
37
  )
28
38
  name = result.split("/")[-1]
29
39
 
@@ -5,6 +5,7 @@
5
5
  "full_name": "Your name",
6
6
  "email": "Your address email <you@example.com>",
7
7
  "release_date": "{% now 'local' %}",
8
+ "remove_docker_files": false,
8
9
  "_extensions": [
9
10
  "jinja2_time.TimeExtension",
10
11
  "extensions.VersionExtension"
@@ -0,0 +1,11 @@
1
+ import os
2
+
3
+
4
+ def delete_docker_files():
5
+ if "{{ cookiecutter.public_integration }}" == "True":
6
+ os.remove("Dockerfile")
7
+ os.remove(".dockerignore")
8
+
9
+
10
+ if __name__ == "__main__":
11
+ delete_docker_files()
@@ -99,8 +99,13 @@ class EntityClientMixin:
99
99
  "rules": [
100
100
  {
101
101
  "property": "$datasource",
102
- "operator": "=",
103
- "value": self.auth.user_agent(user_agent_type),
102
+ "operator": "contains",
103
+ "value": f"port-ocean/{self.auth.integration_type}/",
104
+ },
105
+ {
106
+ "property": "$datasource",
107
+ "operator": "contains",
108
+ "value": f"/{self.auth.integration_identifier}/{user_agent_type.value}",
104
109
  },
105
110
  ],
106
111
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: port-ocean
3
- Version: 0.4.7
3
+ Version: 0.4.9
4
4
  Summary: Port Ocean is a CLI tool for managing your Port projects.
5
5
  Home-page: https://app.getport.io
6
6
  Keywords: ocean,port-ocean,port
@@ -9,13 +9,14 @@ port_ocean/cli/commands/defaults/dock.py,sha256=V5jm9j96r7hGxq0pC5xMf-z_w2MBcOJL
9
9
  port_ocean/cli/commands/defaults/group.py,sha256=hii_4CYoQ7jSMePbnP4AmruO_RKWCUcoV7dXXBlZafc,115
10
10
  port_ocean/cli/commands/list_integrations.py,sha256=DVVioFruGUE-_v6UUHlcemWNN6RlWwCrf1X4HmAXsf8,1134
11
11
  port_ocean/cli/commands/main.py,sha256=gj0lmuLep2XeLNuabB7Wk0UVYPT7_CD_rAw5AoUQWSE,1057
12
- port_ocean/cli/commands/new.py,sha256=gTkWvoT3aFV6PnLcLM43KzI0BkAzaKXgOLkIWqvnuxA,1733
12
+ port_ocean/cli/commands/new.py,sha256=FUj2tPgZDcafKu47pY0-X2JzdcMnFAw2sNOdSQZxu50,2054
13
13
  port_ocean/cli/commands/pull.py,sha256=VvrRjLNlfPuLIf7KzeIcbzzdi98Z0M9wCRpXC3QPxdI,2306
14
14
  port_ocean/cli/commands/sail.py,sha256=rv_lKFITsV5ta9ng3g4eR5H6AtlAsrvBQpAvH_p2DaA,2193
15
15
  port_ocean/cli/commands/version.py,sha256=hEuIEIcm6Zkamz41Z9nxeSM_4g3oNlAgWwQyDGboh-E,536
16
16
  port_ocean/cli/cookiecutter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- port_ocean/cli/cookiecutter/cookiecutter.json,sha256=UtfAOwpFqvQ907ArwxSq-xwXFIw4qfocPOqZ_hiWJJo,444
17
+ port_ocean/cli/cookiecutter/cookiecutter.json,sha256=sXRXRhhhZa7HRzGm67rSQG7Liad2540KrT7ol8IMvtg,478
18
18
  port_ocean/cli/cookiecutter/extensions.py,sha256=eQNjZvy2enDkJpvMbBGil77Xk9-38f862wfnmCjdoBc,446
19
+ port_ocean/cli/cookiecutter/hooks/post_gen_project.py,sha256=w3CH4Ry_sxjCJ-FWwMiuN6ysfZ_9NCiclasxGsqAUdQ,219
19
20
  port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.dockerignore,sha256=9Mz_WI7XBpKzlJ7ILb4vlcuzYkh98Ql3bP_5GHN1sRY,1034
20
21
  port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.gitignore,sha256=32p1lDW_g5hyBz486GWfDeR9m7ikFlASVri5a8vmNoo,2698
21
22
  port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/resources/.gitignore,sha256=kCpRPdl3S_jqYYZaOrc0-xa6-l3KqVjNRXc6jCkd_-Q,12
@@ -38,7 +39,7 @@ port_ocean/clients/port/authentication.py,sha256=DXqZQaYUb2mhWRZXoTivteEyQPTsHtJ
38
39
  port_ocean/clients/port/client.py,sha256=3GYCM0ZkX3pB6sNoOb-7_6dm0Jr5_vqhflD9iltf_As,2640
39
40
  port_ocean/clients/port/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
41
  port_ocean/clients/port/mixins/blueprints.py,sha256=vp7kVzr704fCcp6Cvuwv4LR1GeM_Jh6FpaycLe9mv20,3794
41
- port_ocean/clients/port/mixins/entities.py,sha256=YIu4saILm3-3ArvQTm_vJJa6oTTDCMVFwXAi5qcmpYc,5576
42
+ port_ocean/clients/port/mixins/entities.py,sha256=VA-pVLYBPP933EivK-YhOmCMTG0UhEP85SZta4ifWjA,5810
42
43
  port_ocean/clients/port/mixins/integrations.py,sha256=FuDoQfQnfJvhK-nKpftQ8k7VsB9odNRlkMkGCmxwaWY,4280
43
44
  port_ocean/clients/port/mixins/migrations.py,sha256=M93i_aryfDazRHjkpTS3-sV3UshLCxmsv6yAIOziFl8,1463
44
45
  port_ocean/clients/port/retry_transport.py,sha256=6p64Ek8vpe0hHVcrNIXij8KQ9K2zwPuMUnJp2R8ZYUI,2075
@@ -111,8 +112,8 @@ port_ocean/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
111
112
  port_ocean/run.py,sha256=xvYZlfi-J-IcqsAg8tNVnvl1mEUr6wPSya_-Bbf6jAU,1811
112
113
  port_ocean/utils.py,sha256=ZQCdOk1DzAA3hwUxFAzmbxQurnNYGpl1bDsPocJSkko,6129
113
114
  port_ocean/version.py,sha256=2ugCk8TXPsRIuFviZ8j3RPaszSw2HE-KuaW8vhgWJVM,172
114
- port_ocean-0.4.7.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
115
- port_ocean-0.4.7.dist-info/METADATA,sha256=p4Ch4rizkk1-mBpAXRsyBSRaQAdQ6CNhfDt7ohkggdQ,6490
116
- port_ocean-0.4.7.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
117
- port_ocean-0.4.7.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
118
- port_ocean-0.4.7.dist-info/RECORD,,
115
+ port_ocean-0.4.9.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
116
+ port_ocean-0.4.9.dist-info/METADATA,sha256=r0Wm43wriHPQmVlQVnafGaTrP7p-8oMQynYV6WY8s7M,6490
117
+ port_ocean-0.4.9.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
118
+ port_ocean-0.4.9.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
119
+ port_ocean-0.4.9.dist-info/RECORD,,