-
Notifications
You must be signed in to change notification settings - Fork 32
/
setup.py
58 lines (48 loc) · 1.73 KB
/
setup.py
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
"""
Setup script for PyJSONViewer
How to upload new release
1. run bum-version.sh
2. setup twine, see:https://blog.amedama.jp/entry/2017/12/31/175036
3. create zip file: python setup.py sdist
4. upload: twine upload --repository pypi dist/PyJSONViewer-1.3.0.tar.gz
twine check dist/pyroombaadapter-0.1.2.tar.gz
twine upload --repository pypitest dist/pyroombaadapter-0.1.8.tar.gz
pip install --upgrade -i https://test.pypi.org/simple/ pyroombaadapter
"""
from setuptools import setup, find_packages
import os
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
# read README
try:
import pypandoc
readme = pypandoc.convert_file(PROJECT_PATH + '/README.md', 'rst')
except(IOError, ImportError):
readme = open(PROJECT_PATH + '/README.md').read()
# read __version__
with open(PROJECT_PATH + "/pyjsonviewer/VERSION", 'r') as fd:
__version__ = fd.readline().rstrip('\n')
setup(
name="PyJSONViewer",
version=__version__,
url="https://github.com/AtsushiSakai/PyJSONViewer",
author="Atsushi Sakai",
author_email="[email protected]",
maintainer='Atsushi Sakai',
maintainer_email='[email protected]',
description="A JSON file data viewer using pure python",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
python_requires='>3.6.0',
license="MIT",
keywords="python json tkinter",
packages=find_packages(),
include_package_data=True,
py_modules=["pyjsonviewer"],
entry_points={
'console_scripts': ['pyjsonviewer=pyjsonviewer.pyjsonviewer:main']},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Topic :: Scientific/Engineering :: Visualization',
],
)