Repository navigation
Releases: amcsparron2793-Water/PythonDocxAJM
Release list
0.1.6 Release
Full Changelog: 0.1.5...0.1.6
0.1.5 Release
Ensure compatibility with both PyPi package and dev version. Updated import statements to handle differences in module structure between the installed PyPi package and the development environment. Also bumped the version from 0.1.4 to 0.1.5 to reflect these changes.
0.1.4 Release
trying to fix import issues AGAIN
0.1.3 Release
fixed setup bug and init bug
0.1.2 Release
0.1.1 Release
Release Description for PythonDocxAJM
Version: 0.1.1
Overview
This release introduces the PythonDocxAJM class, which provides essential functionalities for managing and manipulating DOCX files within the PythonDocxAJM project. The key features include error handling, configuration management, document saving, and logging.
Key Features:
-
PythonDocxAJM Class:
- Attributes:
file_template_path: Path to the DOCX template file.file_save_path: Path where the resultant DOCX file will be saved.Document: Represents the DOCX document being manipulated._logger: Logger instance for the class._config: Configuration settings for the class.
- Methods:
__init__: Initializes a new instance of thePythonDocxAJMclass with the provided configuration and template paths.save: Saves the current state of the document to the specified file path.
- Attributes:
-
Error Handling:
_TemplateLockedError: Custom error class to handle scenarios where the template is locked or unavailable.
Instructions for Maintainers:
-
Initialization:
- Ensure the appropriate DOCX template and save paths are provided during the initialization of the
PythonDocxAJMclass instance. - Example:
doc_manager = PythonDocxAJM(template_path="path/to/template", save_path="path/to/save")
- Ensure the appropriate DOCX template and save paths are provided during the initialization of the
-
Saving Document:
- Use the
savemethod to save the current document state. - Example:
doc_manager.save()
- Use the
-
Error Handling:
- Handle
_TemplateLockedErrorto manage template-related exceptions. - Example:
try: # some operation except _TemplateLockedError as e: print(f"Error: {e}")
- Handle
Notes:
- Ensure logging is configured to capture important events and errors.
- Follow the project guidelines for updating configuration settings and document templates.
Thank you for using PythonDocxAJM. We look forward to your feedback and contributions!
0.1 Release
Release Description for PythonDocxAJM
Version: 0.1
Overview
This release includes important updates and improvements for the PythonDocxAJM project, ensuring better distribution management, streamlined project setup, and easier package uploads to PyPI.
Key Features:
-
Setup Enhancement:
- Introduced a robust setup process using
python -m buildto create source distributions (sdist). - Validated and ensured the presence of crucial files (
LICENSE.txt,README.md,setup.cfg,setup.py) for package consistency and compliance.
- Introduced a robust setup process using
-
Automated Distribution Upload:
- Simplified the process of uploading package distributions to PyPI using
twine. - Enabled seamless uploads to PyPI with user authentication via token (
__token__). - Added instructions for uploading to TestPyPI for testing purposes with the
--repositoryflag.
- Simplified the process of uploading package distributions to PyPI using
-
Installation Instructions:
- Provided clear guidelines for installing packages from TestPyPI using pip with the
--index-urlflag.
- Provided clear guidelines for installing packages from TestPyPI using pip with the
Instructions for Maintainers:
-
Pre-upload Checklist:
- Ensure all necessary files (
LICENSE.txt,README.md,setup.cfg,setup.py) are updated. - Commit changes to the remote repository.
- Create a new release tag on the remote repository.
- Ensure all necessary files (
-
Running the Build and Upload:
- Execute the build command to package the project:
python -m build
- Upload the built distributions to PyPI using:
twine upload dist/*
- Execute the build command to package the project:
-
Testing on TestPyPI:
- Upload to TestPyPI (optional):
twine upload --repository testpypi dist/*
- Upload to TestPyPI (optional):