Skip to content

Commit

Permalink
setup.py that allowed publishing to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
clach04 committed Feb 3, 2024
1 parent af9eaa4 commit b3489e4
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions setup.py
Expand Up @@ -44,7 +44,10 @@
long_description = None

# Lookup __version__
exec(open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'puren_tonbo', '_version.py')).read())
project_name = 'puren_tonbo'
project_name_lower = project_name.lower()
license = "GNU Lesser General Public License v2 (LGPLv2)" # ensure this matches tail of http://pypi.python.org/pypi?%3Aaction=list_classifiers
exec(open(os.path.join(os.path.abspath(os.path.dirname(__file__)), project_name_lower, '_version.py')).read()) # get __version__


# TODO/FIXME dupe of requirements.txt - also chi_io missing here (as not on pypi)
Expand All @@ -57,14 +60,15 @@
# https://stackoverflow.com/questions/10572603/specifying-optional-dependencies-in-pypi-python-setup-py

setup(
name='puren_tonbo',
name=project_name,
version=__version__,
author='clach04',
url='https://github.com/clach04/puren_tonbo',
url='https://github.com/clach04/' + project_name,
description='Plain text notes Tombo (chi) alternative, also supports AES-256 ZIP AE-1/AE-2 and VimCrypt encrypted files. Work-In-Progress (WIP)!', # FIXME
long_description=long_description,
long_description_content_type='text/markdown',
#packages=['puren_tonbo'],
packages=find_packages(where=os.path.dirname(__file__), include=['*']),
packages=find_packages(where=os.path.dirname(__file__), include=['*']), # FIXME do this manually
package_data={
'puren_tonbo': [os.path.join(os.path.dirname(__file__), 'puren_tonbo', 'tests', 'data', '*'), # TODO demo_notes?
os.path.join(os.path.dirname(__file__), 'puren_tonbo', 'resources', '*'),
Expand All @@ -85,7 +89,7 @@
#data_files=[('.', [readme_filename])], # does not work :-( ALso tried setup.cfg [metadata]\ndescription-file = README.md # Maybe try include_package_data = True and a MANIFEST.in?
classifiers=[ # See http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)',
'License :: OSI Approved :: ' + license,
'Operating System :: OS Independent',
'Topic :: Security :: Cryptography',
'Topic :: Text Processing :: General',
Expand All @@ -96,12 +100,14 @@
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6', # Python 3.6.9
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
# FIXME TODO more
],
platforms='any', # or distutils.util.get_platform()
install_requires=install_requires,
extras_require={
'chi_io': ['chi_io @ https://github.com/clach04/chi_io.git#egg=package-1.0', ], # TODO chi_io on pypi
'chi_io': ['chi_io', ],
# TODO pyvim
# TODO python-gnupg (consider replacements before implementing https://github.com/clach04/puren_tonbo/issues/118)
}
Expand Down

0 comments on commit b3489e4

Please sign in to comment.