-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (39 loc) · 1.43 KB
/
setup.py
File metadata and controls
63 lines (39 loc) · 1.43 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
import os
import setuptools
_here = os.path.abspath(os.path.dirname(__file__))
def _get_version():
import re
version_file = os.path.join(_here, "src", "lss", "__version__.py")
main_ns = {}
with open(version_file) as vf:
exec(vf.read(), main_ns)
version = main_ns['__version__']
if not version:
raise RuntimeError("Unable to find version string in %s." % (version_file,))
return version
_version = _get_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()
descript = ('A personal project for implementing behaviour akin to`ls` in '
'addition to condensing sets of image sequences into a format '
'that is easier to visualise to the user from the command line')
setuptools.setup(
name="lsseq-jc",
version=_version,
author="Johnny Cochrane",
author_email="johnny.p.cochrane@gmail.com",
description=descript,
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/uncojohnco/eg--lsseq/",
package_dir={'': 'src'},
packages=setuptools.find_packages('src'),
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
],
python_requires='>=3.8',
scripts=['bin/lss']
)