Skip to content

Commit

Permalink
Merge pull request #1 from JordanWelsman/pypi-files
Browse files Browse the repository at this point in the history
To-do list complete. Merging now.
  • Loading branch information
JordanWelsman authored Mar 11, 2023
2 parents 62910bd + 4926666 commit 76c4f88
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 0 deletions.
8 changes: 8 additions & 0 deletions opencsv/__init__.py
Original file line number Diff line number Diff line change
@@ -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__
1 change: 1 addition & 0 deletions opencsv/loading/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__all__ = []
1 change: 1 addition & 0 deletions opencsv/saving/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__all__ = []
54 changes: 54 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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'
)
23 changes: 23 additions & 0 deletions unbuild
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 76c4f88

Please sign in to comment.