File: setup.py

package info (click to toggle)
htic 3.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 252 kB
  • sloc: python: 1,662; makefile: 3
file content (26 lines) | stat: -rwxr-xr-x 755 bytes parent folder | download | duplicates (2)
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
import pathlib
import setuptools


def readVersion(relPath):
	path = pathlib.Path(__file__).parent.joinpath(relPath)
	with open(path) as stream:
		for line in stream:
			if line.startswith("__version__"):
				return line.replace('"', "'").split("'")[1]
	raise RuntimeError("Could not find version string")


setuptools.setup(
	name="htic",
	version=readVersion("htic/__init__.py"),
	description="The Humble Type Instruction Compiler translates simplified plain-text instructions into optimized TrueType bytecode.",
	url="https://gitlab.com/sev/htic",
	author="Severin Meyer",
	author_email="hello@sev.dev",
	license="MIT",
	packages=["htic"],
	entry_points={"console_scripts": ["htic = htic.__main__:main"]},
	python_requires=">=3",
	test_suite="test",
)