Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

setup.py 2.1 KB

You have to be logged in to leave a comment. Sign In
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
74
  1. import setuptools
  2. import os.path
  3. # Thank you pip contributors
  4. def read(rel_path: str) -> str:
  5. here = os.path.abspath(os.path.dirname(__file__))
  6. # intentionally *not* adding an encoding option to open, See:
  7. # https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
  8. with open(os.path.join(here, rel_path)) as fp:
  9. return fp.read()
  10. def get_version(rel_path: str) -> str:
  11. for line in read(rel_path).splitlines():
  12. if line.startswith("__version__"):
  13. # __version__ = "0.9"
  14. delim = '"' if '"' in line else "'"
  15. return line.split(delim)[1]
  16. raise RuntimeError("Unable to find version string.")
  17. with open("README.md", "r", encoding="utf8") as fh:
  18. long_description = fh.read()
  19. install_requires = [
  20. "PyYAML>=5",
  21. "fusepy>=3",
  22. "appdirs>=1.4.4",
  23. "click>=8.0.4",
  24. "httpx~=0.23.0",
  25. "GitPython>=3.1.29",
  26. "rich~=13.1.0",
  27. # Need to keep dacite version in lockstep with voxel, otherwise stuff breaks on their end
  28. "dacite~=1.6.0",
  29. "tenacity~=8.2.2",
  30. "gql[requests]",
  31. "dataclasses-json",
  32. "pandas",
  33. "treelib~=1.6.4",
  34. "pathvalidate~=3.0.0",
  35. "python-dateutil",
  36. "tenacity~=8.2.3",
  37. "boto3",
  38. ]
  39. extras_require = {
  40. "jupyter": ["rich[jupyter]~=13.1.0"],
  41. "fuse": ["fusepy>=3"],
  42. }
  43. packages = setuptools.find_packages(exclude=["tests", "tests.*"])
  44. setuptools.setup(
  45. name="dagshub",
  46. version=get_version("dagshub/__init__.py"),
  47. author="DagsHub",
  48. author_email="contact@dagshub.com",
  49. description="DagsHub client libraries",
  50. long_description=long_description,
  51. long_description_content_type="text/markdown",
  52. url="https://github.com/DagsHub/client",
  53. packages=packages,
  54. install_requires=install_requires,
  55. extras_require=extras_require,
  56. include_package_data=True,
  57. classifiers=[
  58. "Programming Language :: Python :: 3",
  59. "License :: OSI Approved :: MIT License",
  60. "Operating System :: OS Independent",
  61. ],
  62. python_requires=">=3.7",
  63. entry_points={"console_scripts": ["dagshub = dagshub.common.cli:cli"]},
  64. )
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...