-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
69 lines (65 loc) 路 2.6 KB
/
Copy pathsetup.py
File metadata and controls
69 lines (65 loc) 路 2.6 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
#!/usr/bin/env python3
import re
from setuptools import setup
with open("suplemon/main.py", encoding="utf-8") as f:
version = re.search(r'^__version__\s*=\s*"([^"]*)"', f.read(), re.M).group(1)
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
files = ["config/*.json", "themes/*", "modules/*.py", "linelight/*.py"]
# Published as "suplemon-editor" rather than "suplemon", which belongs to the
# original author on PyPI, and rather than "se", which is already a stream
# editor there. The installed commands are still "suplemon" and "se".
setup(name="suplemon-editor",
version=version,
description="Console text editor with multi cursor support. Maintained fork of Suplemon.",
long_description=long_description,
long_description_content_type="text/markdown",
# Richard Lewis wrote Suplemon; this fork only maintains it.
author="Richard Lewis",
author_email="richrd.lewis@gmail.com",
maintainer="leancode",
url="https://github.com/leancode/suplemon/",
project_urls={
"Original project": "https://github.com/richrd/suplemon/",
"Changelog": "https://github.com/leancode/suplemon/blob/master/CHANGELOG.md",
"Issues": "https://github.com/leancode/suplemon/issues",
},
license="MIT",
# config, modules, themes and linelight ship inside the package. modules
# and themes have no __init__.py because they are loaded by path rather
# than imported, but setuptools still needs them listed to install them.
packages=[
"suplemon",
"suplemon.linelight",
"suplemon.config",
"suplemon.modules",
"suplemon.themes",
],
package_data={"": files},
include_package_data=True,
python_requires=">=3.8",
install_requires=[
"pygments",
"wcwidth"
],
entry_points={
"console_scripts": [
"suplemon=suplemon.cli:main",
# Short form: SupLemon Editor. Note that a separate "se" package
# exists on PyPI, so installing both gives whichever landed last.
"se=suplemon.cli:main",
]
},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Text Editors",
"Topic :: Utilities",
]
)