Skip to content

Commit

Permalink
Refactor sdk setup.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Nov 14, 2024
1 parent 36b553c commit 94a678f
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions python/sdk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,18 @@

import imp
import os
import pathlib
import pkg_resources

from setuptools import find_packages, setup

version = imp.load_source(
"merlin.version", os.path.join("merlin", "version.py")
).VERSION

with pathlib.Path("requirements.txt").open() as requirements_txt:
requirements = [
str(requirement)
for requirement in pkg_resources.parse_requirements(requirements_txt)
]
with open("requirements.txt") as f:
REQUIRE = f.read().splitlines()

with pathlib.Path("requirements.test.txt").open() as test_requirements_test:
test_requirements = [
str(requirement)
for requirement in pkg_resources.parse_requirements(test_requirements_test)
]
with open("requirements_test.txt") as f:
TESTS_REQUIRE = f.read().splitlines()

setup(
name="merlin-sdk",
Expand All @@ -45,10 +37,10 @@
packages=find_packages(),
package_data={"merlin": ["docker/pyfunc.Dockerfile", "docker/standard.Dockerfile"]},
zip_safe=True,
install_requires=requirements,
install_requires=REQUIRE,
setup_requires=["setuptools_scm"],
tests_require=test_requirements,
extras_require={"test": test_requirements},
tests_require=TESTS_REQUIRE,
extras_require={"test": TESTS_REQUIRE},
python_requires=">=3.8,<3.11",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 94a678f

Please sign in to comment.