move to multi-file module (required for type checking)
This commit is contained in:
parent
53f47fbafd
commit
84bc016f27
4
lethe/VERSION.py
Normal file
4
lethe/VERSION.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
|
||||||
|
__version__ = '''
|
||||||
|
0.7
|
||||||
|
'''
|
12
lethe/__init__.py
Normal file
12
lethe/__init__.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
"""
|
||||||
|
Git snapshotting tool
|
||||||
|
"""
|
||||||
|
from .lethe import (
|
||||||
|
main, snap, snap_ref, snap_tree, find_merge_base, deref_symref,
|
||||||
|
update_ref, commit_tree, get_tree, get_commit, get_obj, get_root, get_latest_commit,
|
||||||
|
shorten_hash, _run,
|
||||||
|
)
|
||||||
|
|
||||||
|
from .VERSION import __version__
|
||||||
|
|
||||||
|
__author__ = 'Jan Petykeiwicz'
|
4
lethe/__main__.py
Normal file
4
lethe/__main__.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
from .lethe import main
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
@ -12,10 +12,6 @@ from itertools import chain
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
__author__ = 'Jan Petykeiwicz'
|
|
||||||
__version__ = '0.8'
|
|
||||||
|
|
||||||
|
|
||||||
def _run(command: Union[str, List[str]], **kwargs) -> str:
|
def _run(command: Union[str, List[str]], **kwargs) -> str:
|
||||||
"""
|
"""
|
||||||
Wrapper for subprocess.run():
|
Wrapper for subprocess.run():
|
0
lethe/py.typed
Normal file
0
lethe/py.typed
Normal file
17
setup.py
17
setup.py
@ -1,18 +1,26 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
with open('README.md', 'r') as f:
|
|
||||||
|
with open('README.md', 'rt') as f:
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
|
with open('lethe/VERSION.py', 'rt') as f:
|
||||||
|
version = f.readlines()[2].strip()
|
||||||
|
|
||||||
setup(name='lethe',
|
setup(name='lethe',
|
||||||
version='0.8',
|
version=version,
|
||||||
description='Git-based snapshotting',
|
description='Git-based snapshotting',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
author='Jan Petykiewicz',
|
author='Jan Petykiewicz',
|
||||||
author_email='anewusername@gmail.com',
|
author_email='anewusername@gmail.com',
|
||||||
py_modules=['lethe'],
|
url='https://mpxd.net/code/jan/lethe',
|
||||||
|
packages=find_packages(),
|
||||||
|
package_data={
|
||||||
|
'lethe': ['py.typed'],
|
||||||
|
},
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'lethe=lethe:main',
|
'lethe=lethe:main',
|
||||||
@ -21,7 +29,6 @@ setup(name='lethe',
|
|||||||
install_requires=[
|
install_requires=[
|
||||||
'typing',
|
'typing',
|
||||||
],
|
],
|
||||||
url='https://mpxd.net/code/jan/lethe',
|
|
||||||
keywords=[
|
keywords=[
|
||||||
'git',
|
'git',
|
||||||
'snapshot',
|
'snapshot',
|
||||||
|
Loading…
Reference in New Issue
Block a user