-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (38 loc) · 1.21 KB
/
setup.py
File metadata and controls
51 lines (38 loc) · 1.21 KB
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
import re
import sys
import os
import urllib
from setuptools import setup, find_packages
from setuptools.dist import Distribution
project_name = "deepframe"
class BinaryDistribution(Distribution):
def has_ext_modules(foo):
return True
init_file = os.path.join("deepframe", "__init__.py")
def get_property(prop):
result = re.search(
rf'{prop}\s*=\s*[\'"]([^\'"]*)[\'"]',
open(init_file).read(),
)
return result.group(1)
install_requires = [
"numpy",
]
long_description = urllib.request.urlopen("https://raw.githubusercontent.com/activeloopai/deepframe/refs/heads/main/README.md").read().decode("utf-8")
config = {
"name": project_name,
"version": get_property("__version__"), #
"long_description": long_description, #
"long_description_content_type": "text/markdown", #
"author": "activeloop.ai",
"author_email": "support@activeloop.ai",
"packages": find_packages(exclude=["tests"]),
"distclass": BinaryDistribution,
"install_requires": install_requires,
"include_package_data": True,
"zip_safe": False,
"project_urls": {
"Source": "https://github.com/activeloopai/deepframe",
},
}
setup(**config)