From a9028dffe244ae472258317e73be29368fd6837e Mon Sep 17 00:00:00 2001 From: Jordan Welsman Date: Sun, 12 Mar 2023 19:22:54 -0400 Subject: [PATCH 1/4] docs: Added whitespace. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 09e14ae..81717d9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # openxml + An open-source XML generator and parser. From 59f2f46c222dbfca32c3d015c0c65bcdd4915264 Mon Sep 17 00:00:00 2001 From: Jordan Welsman Date: Sun, 12 Mar 2023 19:23:19 -0400 Subject: [PATCH 2/4] .gitignore: Added ignore file. --- .gitignore | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8041c46 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# MacOS +.DS_Store + +# Python +.venv/ + +# Package +test.py + +# Setuptools +build/ +dist/ +openxml.egg-info/ +**/__pycache__/ \ No newline at end of file From 913e224765edae67496552f344daafcf9d8f820b Mon Sep 17 00:00:00 2001 From: Jordan Welsman Date: Sun, 12 Mar 2023 19:25:20 -0400 Subject: [PATCH 3/4] build: Added setup files. --- setup.py | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ unbuild | 23 +++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 setup.py create mode 100755 unbuild diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..164fccd --- /dev/null +++ b/setup.py @@ -0,0 +1,54 @@ +# Module imports +from setuptools import setup + +# Arguments +version = "0.0.0" # update __init__.py +python_version = ">=3.10" + +# Long description from README.md +with open("README.md", "r") as fh: + long_description = fh.read() + +# openxml package data +py_modules = [] + +# Run setup function +setup( + name='openxml', + version=version, + description='An open-source XML generator and parser.', + license='MIT', + long_description=long_description, + long_description_content_type='text/markdown', + author='Jordan Welsman', + author_email='jordan.welsman@outlook.com', + url='https://pypi.org/project/openxml/', + download_url='https://github.com/JordanWelsman/openxml/tags', + classifiers=[ + 'Development Status :: 1 - Planning', + 'Intended Audience :: Developers', + 'Intended Audience :: Education', + 'Intended Audience :: Science/Research', + 'License :: OSI Approved :: MIT License', + 'Topic :: Education', + 'Topic :: Scientific/Engineering', + 'Topic :: Software Development', + 'Topic :: Software Development :: Interpreters', + 'Topic :: Software Development :: Libraries', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Utilities', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12" + ], + package_data = { + 'opxml': py_modules + }, + python_requires=python_version, + install_requires = [ + "jutl" + ], + keywords='python, xml, modular, parsing, interpreting, exporting, importing' +) \ No newline at end of file diff --git a/unbuild b/unbuild new file mode 100755 index 0000000..7911308 --- /dev/null +++ b/unbuild @@ -0,0 +1,23 @@ +#!/bin/sh + +# openxml Unbuild Script +# To be used to delete the directories & files created by `python setup.py bdist_wheel`. + +# Author : Jordan Welsman +# Copyright : Jordan Welsman + +echo "You are about to delete files & folders from openxml." +echo "These files are crucial to the ability to install and import openxml." +read -p "Do you want to continue? [Y/n]: " + +if [[ $REPLY =~ ^[Yy]$ ]] +then + rm -rf build # remove build directory if exists + rm -rf dist # remove distribution directory if exists + find . -name __pycache__ -type d -print0|xargs -0 rm -r -- # remove all pycache directories + find . -name .pytest_cache -type d -print0|xargs -0 rm -r -- # remove all pytest cache directories + find . -name openxml.egg-info -type d -print0|xargs -0 rm -r -- # remove all egg-info directories + echo "Project successfully unbuilt." +else + echo "Operation aborted." +fi \ No newline at end of file From 97d971c586f08719e45d913132f4893c8db4a66d Mon Sep 17 00:00:00 2001 From: Jordan Welsman Date: Sun, 12 Mar 2023 19:25:42 -0400 Subject: [PATCH 4/4] build: Fixed module name typo. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 164fccd..57e5e2c 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ "Programming Language :: Python :: 3.12" ], package_data = { - 'opxml': py_modules + 'openxml': py_modules }, python_requires=python_version, install_requires = [