-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
73 lines (65 loc) · 2.55 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
#!/usr/bin/env python3
# Copyright 2019, 2020, 2021, 2022, 2023 Matthew Egan Odendahl
# SPDX-License-Identifier: Apache-2.0
import os
import shutil
import sys
import setuptools
os.makedirs("setup", exist_ok=True)
shutil.copy("LICENSE.txt", "setup/LICENSE.txt")
with open("README.md", encoding="utf8") as f:
long_description = f.read()
os.chdir("setup")
sys.path.insert(0, "../src")
import hissp
hissp.transpile(hissp.__package__, "macros")
setuptools.setup(
name="hissp",
version=hissp.VERSION,
description="It's Python with a Lissp.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Matthew Egan Odendahl",
author_email="[email protected]",
license="Apache-2.0",
url="https://github.com/gilch/hissp",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Lisp",
"Topic :: Software Development",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Compilers",
"Topic :: Software Development :: Interpreters",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Pre-processors",
],
keywords=(
"lisp macro metaprogramming compiler interpreter DSL AST transpiler emacs"
" clojure scheme language minimal REPL metaprogramming macros extensible"
" s-expressions code-generation no-dependencies quasiquote backquote"
" syntax-quote template Hissp Lissp"
),
packages=setuptools.find_packages("../src"),
package_data={
"": ["*.lissp"]
}, # If any package contains *.lissp files, include them.
package_dir={"": "../src"},
python_requires=">=3.10",
entry_points={"console_scripts": ["lissp=hissp.__main__:main"]},
)
# Build dist and install:
# python setup.py bdist_wheel && pip install --force-reinstall setup\dist\hissp-*.whl
# RELEASE: Double-check setup data.
# RELEASE: Clean build macros.py and make sure it's in the .whl.
# RELEASE: Inspect all files in the .whl.