From 1477661afb4e9f2c9b8bb5f1acfd7df37fb3500b Mon Sep 17 00:00:00 2001 From: Jordan Welsman Date: Sat, 11 Mar 2023 11:27:19 -0500 Subject: [PATCH 1/4] build: Added init files. --- opencsv/__init__.py | 0 opencsv/loading/__init__.py | 0 opencsv/saving/__init__.py | 0 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 opencsv/__init__.py create mode 100644 opencsv/loading/__init__.py create mode 100644 opencsv/saving/__init__.py diff --git a/opencsv/__init__.py b/opencsv/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/opencsv/loading/__init__.py b/opencsv/loading/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/opencsv/saving/__init__.py b/opencsv/saving/__init__.py new file mode 100644 index 0000000..e69de29 From 174c5c3d3b5f40312c7ff6472b3334fb6b9c8387 Mon Sep 17 00:00:00 2001 From: Jordan Welsman Date: Sat, 11 Mar 2023 11:27:37 -0500 Subject: [PATCH 2/4] build: Added setup file. --- setup.py | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c4c45bb --- /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() + +# opencsv package data +py_modules = [] + +# Run setup function +setup( + name='opencsv', + version=version, + description='Dealing with CSV the modular way.', + 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/opencsv/', + download_url='https://github.com/JordanWelsman/opencsv/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 = { + 'opencsv': py_modules + }, + python_requires=python_version, + install_requires = [ + "jutl" + ], + keywords='python, csv, modular, parsing, interpreting, exporting, importing' +) \ No newline at end of file From fca796ae9312f3dbdc635e17ee238b62fbe06806 Mon Sep 17 00:00:00 2001 From: Jordan Welsman Date: Sat, 11 Mar 2023 11:33:23 -0500 Subject: [PATCH 3/4] build: Created unbuild script. --- unbuild | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 unbuild diff --git a/unbuild b/unbuild new file mode 100755 index 0000000..4ebbf4b --- /dev/null +++ b/unbuild @@ -0,0 +1,23 @@ +#!/bin/sh + +# opencsv 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 opencsv." +echo "These files are crucial to the ability to install and import opencsv." +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 opencsv.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 4926666a7bb109397b8062d5f23cf29597e89ea4 Mon Sep 17 00:00:00 2001 From: Jordan Welsman Date: Sat, 11 Mar 2023 11:33:40 -0500 Subject: [PATCH 4/4] build: Added init scripts. --- opencsv/__init__.py | 8 ++++++++ opencsv/loading/__init__.py | 1 + opencsv/saving/__init__.py | 1 + 3 files changed, 10 insertions(+) diff --git a/opencsv/__init__.py b/opencsv/__init__.py index e69de29..d365245 100644 --- a/opencsv/__init__.py +++ b/opencsv/__init__.py @@ -0,0 +1,8 @@ +# Dunder attributes +__version__ = "v0.0.0" # update setup.py +__author__ = "Jordan Welsman" + +from .loading import * +from .saving import * + +__all__ = loading.__all__, saving.__all__ \ No newline at end of file diff --git a/opencsv/loading/__init__.py b/opencsv/loading/__init__.py index e69de29..b680692 100644 --- a/opencsv/loading/__init__.py +++ b/opencsv/loading/__init__.py @@ -0,0 +1 @@ +__all__ = [] \ No newline at end of file diff --git a/opencsv/saving/__init__.py b/opencsv/saving/__init__.py index e69de29..b680692 100644 --- a/opencsv/saving/__init__.py +++ b/opencsv/saving/__init__.py @@ -0,0 +1 @@ +__all__ = [] \ No newline at end of file