-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
30 lines (26 loc) · 919 Bytes
/
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
#!/usr/bin/env python
import os
import setuptools
def read_version():
version_file_path = os.path.join(os.path.dirname(__file__), "baca", "_version.py")
with open(version_file_path, "r") as file_pointer:
file_contents_string = file_pointer.read()
local_dict: dict = {}
exec(file_contents_string, None, local_dict)
__version__ = local_dict["__version__"]
return __version__
if __name__ == "__main__":
setuptools.setup(
author="Trevor Bača",
author_email="[email protected]",
description="Trevor Bača's Abjad library.",
install_requires=["abjad>=3.20"],
keywords="abjad, lilypond, music composition, music notation",
license="MIT",
name="baca",
packages=["baca"],
platforms="Any",
python_requires=">=3.12",
url="https://github.com/trevorbaca/baca",
version=read_version(),
)