-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from JordanWelsman/pypi-files
To-do list complete. Merging now.
- Loading branch information
Showing
5 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__all__ = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__all__ = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |