unique-package-name-test-12345 0.1.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.
@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.4
2
+ Name: unique-package-name-test-12345
3
+ Version: 0.1.0
4
+ Summary: A sample package that prints message on installation
5
+ Home-page: https://github.com/yourusername/unique-package-name-test-12345
6
+ Author: XYZ
7
+ Author-email: your.email@example.com
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.7
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Requires-Python: >=3.7
19
+ Description-Content-Type: text/markdown
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: requires-python
27
+ Dynamic: summary
28
+
29
+ # Test Package
30
+
31
+ A sample Python package that demonstrates running code during installation.
32
+
33
+ ## Installation
34
+
35
+ ```bash
36
+ pip install test-package
@@ -0,0 +1,8 @@
1
+ # Test Package
2
+
3
+ A sample Python package that demonstrates running code during installation.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install test-package
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,64 @@
1
+ import os
2
+ import sys
3
+ from setuptools import setup, find_packages
4
+ from setuptools.command.install import install
5
+
6
+ # Read README file
7
+ with open("README.md", "r", encoding="utf-8") as fh:
8
+ long_description = fh.read()
9
+
10
+ class PostInstallCommand(install):
11
+ """Custom post-installation command"""
12
+ def run(self):
13
+ # Run the standard installation
14
+ install.run(self)
15
+
16
+ # Execute our custom post-install code
17
+ print("Sample package installed")
18
+ print("Running post-installation setup...")
19
+
20
+ # You can add more complex logic here
21
+ try:
22
+ # Import and run our installer module
23
+ from test_package.installer import post_install
24
+ # post_install() # This will run again, so we'll skip it to avoid duplicate prints
25
+ except ImportError:
26
+ print("Warning: Could not import installer module")
27
+
28
+ setup(
29
+ name="unique-package-name-test-12345",
30
+ version="0.1.0",
31
+ author="XYZ",
32
+ author_email="your.email@example.com",
33
+ description="A sample package that prints message on installation",
34
+ long_description=long_description,
35
+ long_description_content_type="text/markdown",
36
+ url="https://github.com/yourusername/unique-package-name-test-12345",
37
+ packages=find_packages(),
38
+ classifiers=[
39
+ "Development Status :: 3 - Alpha",
40
+ "Intended Audience :: Developers",
41
+ "License :: OSI Approved :: MIT License",
42
+ "Operating System :: OS Independent",
43
+ "Programming Language :: Python :: 3",
44
+ "Programming Language :: Python :: 3.7",
45
+ "Programming Language :: Python :: 3.8",
46
+ "Programming Language :: Python :: 3.9",
47
+ "Programming Language :: Python :: 3.10",
48
+ "Programming Language :: Python :: 3.11",
49
+ ],
50
+ python_requires=">=3.7",
51
+ install_requires=[
52
+ # Add your dependencies here
53
+ ],
54
+ # Custom command classes
55
+ cmdclass={
56
+ 'install': PostInstallCommand,
57
+ },
58
+ # Entry points (optional - for CLI commands)
59
+ entry_points={
60
+ 'console_scripts': [
61
+ 'my-package-cli=my_package:main',
62
+ ],
63
+ },
64
+ )
@@ -0,0 +1,9 @@
1
+ """
2
+ My Package - A sample package that prints on installation
3
+ """
4
+
5
+ __version__ = "0.1.0"
6
+ __author__ = "Your Name"
7
+
8
+ # This will run when the package is imported
9
+ print("Sample package installed")
@@ -0,0 +1,11 @@
1
+ """
2
+ Custom installer script that runs during package installation
3
+ """
4
+
5
+ def post_install():
6
+ """Function that runs after package installation"""
7
+ print("Sample package installed")
8
+ print("Package installation completed successfully!")
9
+
10
+ # Run immediately when this module is imported
11
+ post_install()
@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.4
2
+ Name: unique-package-name-test-12345
3
+ Version: 0.1.0
4
+ Summary: A sample package that prints message on installation
5
+ Home-page: https://github.com/yourusername/unique-package-name-test-12345
6
+ Author: XYZ
7
+ Author-email: your.email@example.com
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.7
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Requires-Python: >=3.7
19
+ Description-Content-Type: text/markdown
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: requires-python
27
+ Dynamic: summary
28
+
29
+ # Test Package
30
+
31
+ A sample Python package that demonstrates running code during installation.
32
+
33
+ ## Installation
34
+
35
+ ```bash
36
+ pip install test-package
@@ -0,0 +1,9 @@
1
+ README.md
2
+ setup.py
3
+ test_package/__init__.py
4
+ test_package/installer.py
5
+ unique_package_name_test_12345.egg-info/PKG-INFO
6
+ unique_package_name_test_12345.egg-info/SOURCES.txt
7
+ unique_package_name_test_12345.egg-info/dependency_links.txt
8
+ unique_package_name_test_12345.egg-info/entry_points.txt
9
+ unique_package_name_test_12345.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ my-package-cli = my_package:main