-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
50 lines (43 loc) · 1.45 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
#!/usr/bin/env python
# ------------------------------------------------------------------------------
# Copyright (c) 2023+ TYPETR
# Usage by MIT License
# ..............................................................................
#
# import sys
from setuptools import setup
# if "sdist" in sys.argv:
# import os
# import subprocess
# import shutil
# docFolder = os.path.join(os.getcwd(), "Documentation")
# # remove existing
# doctrees = os.path.join(docFolder, "build", "doctrees")
# if os.path.exists(doctrees):
# shutil.rmtree(doctrees)
# # compile
# p = subprocess.Popen(["make", "html"], cwd=docFolder)
# p.wait()
# # remove doctrees
# shutil.rmtree(doctrees)
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
setup(
name="cocoa-vanilla",
use_scm_version={"write_to": "Lib/vanilla/_version.py"},
description="A Pythonic wrapper around Cocoa.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Tal Leming",
author_email="[email protected]",
maintainer="Just van Rossum, Frederik Berlaen",
maintainer_email="[email protected]",
install_requires=["pyobjc"],
setup_requires=["setuptools_scm"],
url="https://github.com/robotools/vanilla",
license="MIT",
packages=["vanilla", "vanilla.test"],
package_dir={"": "Lib"},
platforms=["macOS"],
python_requires=">=3.6",
)