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.2 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
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from pathlib import Path
  4. from setuptools import find_packages, setup
  5. # Package meta-data.
  6. NAME = 'catvsdog_model'
  7. DESCRIPTION = "Cats vs Dogs dataset Image classification model package "
  8. EMAIL = "------"
  9. AUTHOR = "----------"
  10. REQUIRES_PYTHON = ">=3.7.0"
  11. # The rest no need to touch too much :)
  12. # ------------------------------------------------
  13. # Except, perhaps the License and Trove Classifiers!
  14. # Trove Classifiers: https://pypi.org/classifiers/
  15. long_description = DESCRIPTION
  16. # Load the package's VERSION file as a dictionary.
  17. about = {}
  18. ROOT_DIR = Path(__file__).resolve().parent
  19. print(ROOT_DIR)
  20. REQUIREMENTS_DIR = ROOT_DIR / 'requirements'
  21. PACKAGE_DIR = ROOT_DIR / 'catvsdog_model'
  22. with open(PACKAGE_DIR / "VERSION") as f:
  23. _version = f.read().strip()
  24. about["__version__"] = _version
  25. # What packages are required for this module to be executed?
  26. def list_reqs(fname="requirements.txt"):
  27. with open(REQUIREMENTS_DIR / fname) as fd:
  28. return fd.read().splitlines()
  29. # Where the magic happens:
  30. setup(
  31. name=NAME,
  32. version=about["__version__"],
  33. description=DESCRIPTION,
  34. long_description=long_description,
  35. long_description_content_type="text/markdown",
  36. author=AUTHOR,
  37. author_email=EMAIL,
  38. python_requires=REQUIRES_PYTHON,
  39. packages=find_packages(exclude=("tests",)),
  40. package_data={"classification_model": ["VERSION"]},
  41. install_requires=list_reqs(),
  42. extras_require={},
  43. include_package_data=True,
  44. license="BSD-3",
  45. classifiers=[
  46. # Trove classifiers
  47. # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
  48. "License :: OSI Approved :: MIT License",
  49. "Programming Language :: Python",
  50. "Programming Language :: Python :: 3",
  51. "Programming Language :: Python :: 3.7",
  52. "Programming Language :: Python :: 3.8",
  53. "Programming Language :: Python :: 3.9",
  54. "Programming Language :: Python :: 3.10",
  55. "Programming Language :: Python :: 3.11",
  56. "Programming Language :: Python :: Implementation :: CPython",
  57. "Programming Language :: Python :: Implementation :: PyPy",
  58. ],
  59. )
Tip!

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

Comments

Loading...