-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
77 lines (62 loc) · 2.23 KB
/
setup.py
File metadata and controls
77 lines (62 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Robin 'r0w' Weiland"
__date__ = "2020-08-25"
__version__ = "0.0.0"
__all__ = ()
from pathlib import Path
from setuptools import setup, find_packages
from shutil import rmtree
BUILD_DIRS = (
'jsonvc.egg-info',
'build',
'dist'
)
if __name__ == '__main__':
print('cleaning up')
for d in BUILD_DIRS:
path = Path(d)
if path.exists() and path.is_dir():
print(f'Deleting {path}...')
rmtree(d)
setup(
name='jsonvc',
version=__version__,
packages=find_packages(),
url='https://github.com/robin-weiland/jsonvc',
license='MIT',
author=__author__,
author_email='robin.weiland@gmx.de',
description='tiny version control for json data',
long_description=Path('README.md').read_text(),
long_description_content_type='text/markdown',
keywords=['json', 'vcs', 'git'],
python_requires='>=3.5', # typing
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development',
'Topic :: Software Development :: Version Control',
'Topic:: Scientific / Engineering',
'Topic :: Scientific/Engineering :: Information Analysis',
'Typing::Typed'
],
requires=[line.split('=')[0].rstrip('~<>=')
for line in Path('requirements.txt').read_text().splitlines()
if not (line.startswith('#') or line == '' or line == '\n' or line.endswith('###'))],
entry_points={
'console_scripts': [
'jsonvc = jsonvc:main'
]
}
)