-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
102 lines (88 loc) · 2.35 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
def dump_version_file (
author : str,
email : str,
version : str
):
'''
Dump the __version__.py file as python script
Parameters
----------
author: str
List of author/maintainer names comma separated
email: str
List of author/maintainer emails comma separated
version: str
String of the version code as major.minor.revision
'''
script = f'''#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = '{author}'
__email__ = '{email}'
__version__ = '{version}'
'''
filename = os.path.abspath(os.path.dirname(__file__))
filename = f'{filename}/deepskin/__version__.py'
with open(filename, 'w') as fp:
fp.write(script)
PACKAGE_NAME = 'deepskin'
AUTHOR = 'Nico Curti'
EMAIL = 'nico.curti2@unibo.it'
REQUIRES_PYTHON = '>=3.5'
PACKAGE_VERSION = '0.0.1'
DESCRIPTION = 'Wound analysis using smartphone images'
URL = 'https://github.com/Nico-Curti/Deepskin'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = EMAIL
DOWNLOAD_URL = URL
# dump the version file
dump_version_file(
author=MAINTAINER,
email=MAINTAINER_EMAIL,
version=PACKAGE_VERSION
)
setup(
name=PACKAGE_NAME,
version=PACKAGE_VERSION,
description=DESCRIPTION,
author=AUTHOR,
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
install_requires=[],
url=URL,
download_url=DOWNLOAD_URL,
setup_requires=[],
packages=[
PACKAGE_NAME,
],
package_data={
PACKAGE_NAME: [],
},
include_package_data=True,
platforms='any',
classifiers=[
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'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',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
],
entry_points={'console_scripts': [
'deepskin = deepskin.__main__:main',
],
},
)