abstract-modules 0.0.3.61__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.
- abstract_modules-0.0.3.61/PKG-INFO +107 -0
- abstract_modules-0.0.3.61/README.md +89 -0
- abstract_modules-0.0.3.61/setup.cfg +4 -0
- abstract_modules-0.0.3.61/setup.py +27 -0
- abstract_modules-0.0.3.61/src/abstract_modules/__init__.py +1 -0
- abstract_modules-0.0.3.61/src/abstract_modules/create_module.py +850 -0
- abstract_modules-0.0.3.61/src/abstract_modules/create_module_folder.py +654 -0
- abstract_modules-0.0.3.61/src/abstract_modules/main.py +36 -0
- abstract_modules-0.0.3.61/src/abstract_modules/module_utils.py +152 -0
- abstract_modules-0.0.3.61/src/abstract_modules/upload_utils.py +504 -0
- abstract_modules-0.0.3.61/src/abstract_modules.egg-info/PKG-INFO +107 -0
- abstract_modules-0.0.3.61/src/abstract_modules.egg-info/SOURCES.txt +13 -0
- abstract_modules-0.0.3.61/src/abstract_modules.egg-info/dependency_links.txt +1 -0
- abstract_modules-0.0.3.61/src/abstract_modules.egg-info/requires.txt +3 -0
- abstract_modules-0.0.3.61/src/abstract_modules.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: abstract_modules
|
|
3
|
+
Version: 0.0.3.61
|
|
4
|
+
Summary: abstract_modules allows you to easily upload your Python module to the Python Package Index (PyPI) using Twine. It automates several steps of the packaging and distribution process, making it easier to share your module with the Python community..
|
|
5
|
+
Home-page: https://github.com/AbstractEndeavors/abstract_essentials/tree/main/abstract_modules
|
|
6
|
+
Author: putkoff
|
|
7
|
+
Author-email: partners@abstractendeavors.com
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Requires-Python: >=3.6
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: abstract_utilities>=0.0.1740
|
|
16
|
+
Requires-Dist: abstract_gui>=0.0.53.5
|
|
17
|
+
Requires-Dist: pexpect>=4.8.0
|
|
18
|
+
|
|
19
|
+
#abstract_modules
|
|
20
|
+
# Python Module Upload to PyPI
|
|
21
|
+
|
|
22
|
+
This utility script allows you to easily upload your Python module to the Python Package Index (PyPI) using Twine. It automates several steps of the packaging and distribution process, making it easier to share your module with the Python community.
|
|
23
|
+
|
|
24
|
+
## Prerequisites
|
|
25
|
+
|
|
26
|
+
Before using this script, ensure you have the following prerequisites:
|
|
27
|
+
|
|
28
|
+
- Python 3.x installed on your system
|
|
29
|
+
- `twine`, `build`,`abstract_utilities`,`abstract_gui` and `pexpect` packages installed. You can install them using `pip`:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install twine build pexpect
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Getting Started
|
|
36
|
+
|
|
37
|
+
1. Clone the repository or download the script file (`upload_to_pypi.py`) to your local machine.
|
|
38
|
+
|
|
39
|
+
2. Navigate to the directory where your Python module is located using the command line.
|
|
40
|
+
|
|
41
|
+
3. **Optional**: If you use a virtual environment, activate it before proceeding.
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
Run the script `upload_to_pypi.py` with Python 3:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
python3 upload_to_pypi.py
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The script will guide you through the following steps:
|
|
52
|
+
|
|
53
|
+
1. **Selecting Module Directory**: You will be prompted to pick the module directory using a GUI window. This directory should contain the necessary files, including the `setup.py` file.
|
|
54
|
+

|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
2. **Updating Version Number**: If the version number in the `setup.py` file matches an existing version in the `dist` directory, you will be asked to enter a new version number.
|
|
58
|
+

|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
3. **Building the Module**: The script will build your module using the `setup.py` script. The distribution files (wheels) will be placed in the `dist` directory.
|
|
62
|
+

|
|
63
|
+
|
|
64
|
+

|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
4. **Uploading to PyPI**: The script will prompt you to enter your PyPI username and password securely. It will then upload the module to PyPI using Twine.
|
|
68
|
+
|
|
69
|
+
5. **Installing the Module**: After successful upload, you will have the option to install the module using pip for testing purposes.
|
|
70
|
+

|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## Example
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
$ python3 upload_to_pypi.py
|
|
78
|
+
# Output will guide you through the process
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Contributing
|
|
82
|
+
|
|
83
|
+
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to create an issue or submit a pull request.
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
This utility script is open-source and distributed under the [MIT License](LICENSE).
|
|
88
|
+
|
|
89
|
+
## Acknowledgments
|
|
90
|
+
|
|
91
|
+
This script utilizes the following packages and resources:
|
|
92
|
+
|
|
93
|
+
- [pexpect](https://pexpect.readthedocs.io/) - For automating interactive command-line applications.
|
|
94
|
+
- [Twine](https://twine.readthedocs.io/) - For securely uploading Python packages to PyPI.
|
|
95
|
+
- [Python](https://www.python.org/) - The Python programming language.
|
|
96
|
+
|
|
97
|
+
## Disclaimer
|
|
98
|
+
|
|
99
|
+
This script is provided "as is" without warranty of any kind. Use it at your own risk.
|
|
100
|
+
|
|
101
|
+
## Support
|
|
102
|
+
|
|
103
|
+
If you encounter any issues or need assistance, please [create an issue](https://github.com/AbstractEndeavors/abstract_essentials/tree/main/abstract_modules) or seek support in the Python community forums.
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
Thank you for using our utility script! If you have any feedback or questions, don't hesitate to contact us. Happy packaging and distributing!
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#abstract_modules
|
|
2
|
+
# Python Module Upload to PyPI
|
|
3
|
+
|
|
4
|
+
This utility script allows you to easily upload your Python module to the Python Package Index (PyPI) using Twine. It automates several steps of the packaging and distribution process, making it easier to share your module with the Python community.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
|
|
8
|
+
Before using this script, ensure you have the following prerequisites:
|
|
9
|
+
|
|
10
|
+
- Python 3.x installed on your system
|
|
11
|
+
- `twine`, `build`,`abstract_utilities`,`abstract_gui` and `pexpect` packages installed. You can install them using `pip`:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pip install twine build pexpect
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Getting Started
|
|
18
|
+
|
|
19
|
+
1. Clone the repository or download the script file (`upload_to_pypi.py`) to your local machine.
|
|
20
|
+
|
|
21
|
+
2. Navigate to the directory where your Python module is located using the command line.
|
|
22
|
+
|
|
23
|
+
3. **Optional**: If you use a virtual environment, activate it before proceeding.
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
Run the script `upload_to_pypi.py` with Python 3:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
python3 upload_to_pypi.py
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The script will guide you through the following steps:
|
|
34
|
+
|
|
35
|
+
1. **Selecting Module Directory**: You will be prompted to pick the module directory using a GUI window. This directory should contain the necessary files, including the `setup.py` file.
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
2. **Updating Version Number**: If the version number in the `setup.py` file matches an existing version in the `dist` directory, you will be asked to enter a new version number.
|
|
40
|
+

|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
3. **Building the Module**: The script will build your module using the `setup.py` script. The distribution files (wheels) will be placed in the `dist` directory.
|
|
44
|
+

|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
4. **Uploading to PyPI**: The script will prompt you to enter your PyPI username and password securely. It will then upload the module to PyPI using Twine.
|
|
50
|
+
|
|
51
|
+
5. **Installing the Module**: After successful upload, you will have the option to install the module using pip for testing purposes.
|
|
52
|
+

|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## Example
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
$ python3 upload_to_pypi.py
|
|
60
|
+
# Output will guide you through the process
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Contributing
|
|
64
|
+
|
|
65
|
+
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to create an issue or submit a pull request.
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
This utility script is open-source and distributed under the [MIT License](LICENSE).
|
|
70
|
+
|
|
71
|
+
## Acknowledgments
|
|
72
|
+
|
|
73
|
+
This script utilizes the following packages and resources:
|
|
74
|
+
|
|
75
|
+
- [pexpect](https://pexpect.readthedocs.io/) - For automating interactive command-line applications.
|
|
76
|
+
- [Twine](https://twine.readthedocs.io/) - For securely uploading Python packages to PyPI.
|
|
77
|
+
- [Python](https://www.python.org/) - The Python programming language.
|
|
78
|
+
|
|
79
|
+
## Disclaimer
|
|
80
|
+
|
|
81
|
+
This script is provided "as is" without warranty of any kind. Use it at your own risk.
|
|
82
|
+
|
|
83
|
+
## Support
|
|
84
|
+
|
|
85
|
+
If you encounter any issues or need assistance, please [create an issue](https://github.com/AbstractEndeavors/abstract_essentials/tree/main/abstract_modules) or seek support in the Python community forums.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
Thank you for using our utility script! If you have any feedback or questions, don't hesitate to contact us. Happy packaging and distributing!
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from time import time
|
|
2
|
+
import setuptools
|
|
3
|
+
with open("README.md", "r", encoding="utf-8") as fh:
|
|
4
|
+
long_description = fh.read()
|
|
5
|
+
setuptools.setup(
|
|
6
|
+
name='abstract_modules',
|
|
7
|
+
version='0.0.3.61',
|
|
8
|
+
author='putkoff',
|
|
9
|
+
author_email='partners@abstractendeavors.com',
|
|
10
|
+
description='abstract_modules allows you to easily upload your Python module to the Python Package Index (PyPI) using Twine. It automates several steps of the packaging and distribution process, making it easier to share your module with the Python community..',
|
|
11
|
+
long_description=long_description,
|
|
12
|
+
long_description_content_type='text/markdown',
|
|
13
|
+
url='https://github.com/AbstractEndeavors/abstract_essentials/tree/main/abstract_modules',
|
|
14
|
+
classifiers=[
|
|
15
|
+
'Development Status :: 3 - Alpha',
|
|
16
|
+
'Intended Audience :: Developers',
|
|
17
|
+
'License :: OSI Approved :: MIT License',
|
|
18
|
+
'Programming Language :: Python :: 3',
|
|
19
|
+
'Programming Language :: Python :: 3.11',
|
|
20
|
+
],
|
|
21
|
+
install_requires=['abstract_utilities>=0.0.1740', 'abstract_gui>=0.0.53.5', 'pexpect>=4.8.0'],
|
|
22
|
+
package_dir={"": "src"},
|
|
23
|
+
packages=setuptools.find_packages(where="src"),
|
|
24
|
+
python_requires=">=3.6",
|
|
25
|
+
# Add this line to include wheel format in your distribution
|
|
26
|
+
setup_requires=['wheel'],
|
|
27
|
+
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .upload_utils import upload_module
|