-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (57 loc) · 1.81 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
# coding: utf-8
from setuptools import setup
from setuptools_rust import Binding, RustExtension
# read README contents for long_description
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name="skim-unicode-table",
# version is handled dynamically by setuptools_scm
use_scm_version = True,
description="Interactive fuzzy-searchable unicode table using lotabout/skim",
long_description=long_description,
long_description_content_type='text/markdown',
keywords=["unicode", "table", "interactive", "character", "fuzzy"],
url="https://github.com/smheidrich/skim-unicode-table",
author="Shahriar Heidrich",
author_email="[email protected]",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
packages=["skim_unicode_table"],
rust_extensions=[
RustExtension({"sk": "skim_unicode_table.sk"},
path="skim-fork/Cargo.toml", binding=Binding.Exec),
RustExtension(
{"print-unicode-table": "skim_unicode_table.print-unicode-table"},
path="print-unicode-table/Cargo.toml", binding=Binding.Exec)
],
package_data={
"skim_unicode_table": ["*.sh", "render-glyph"]
},
# Rust binary definitely not zip safe, neither are shell scripts referring to
# each other
zip_safe=False,
scripts=[
"scripts/skim-unicode-table",
"scripts/skim-unicode-table-xsel",
],
setup_requires=[
"pytest-runner",
"setuptools_scm",
],
install_requires=[
"cairocffi",
"pangocairocffi",
],
tests_require=[
"pytest",
],
)