-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (56 loc) · 1.92 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
__author__ = 'j3p0uk'
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
version_file = os.path.join(here, 'VERSION')
# Get the long description from the README file
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
if not os.path.isfile(version_file):
BUILD_NUMBER = os.environ.get('GITHUB_RUN_NUMBER', '0')
with open(version_file, encoding='utf-8', mode='w') as f:
f.write(BUILD_NUMBER)
else:
with open(version_file, encoding='utf-8') as f:
BUILD_NUMBER = f.read().strip()
setup(
name='net_uml_draw',
version='2.' + BUILD_NUMBER,
description='Write PlantUML from a Google Sheet network description',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/j3p0uk/net-uml-draw',
author='JP Sullivan (j3p0uk)',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
],
keywords='network_diagram plantuml google_sheets',
install_requires=[
"google-api-python-client",
"google-auth-httplib2",
"google-auth-oauthlib",
"numpy"
],
platforms=['Any'],
scripts=[],
provides=['net_uml_draw'],
packages=find_packages(exclude=['docs', 'test']),
include_package_data=True,
entry_points={
'console_scripts': [
'net-uml-draw=net_uml_draw.cli:main',
],
},
data_files=[("", ["LICENSE", "VERSION"])],
project_urls={
'Bug Reports': 'https://github.com/j3p0uk/net-uml-draw/issues',
'Source': 'https://github.com/j3p0uk/net-uml-draw/',
},
zip_safe=False,
)