From 48e8459db2b7ba72d77e84ccbfe24cf4f1fb7ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Portela=20Afonso?= Date: Wed, 22 Sep 2021 18:10:53 +0100 Subject: [PATCH] chore(packaging): write VERSION to temporary file (#41) --- Makefile | 1 + setup.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f4502379..014ae377 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,7 @@ test: ### Runs all the project tests package: clean ### Runs the project setup echo __version__ = \"$(version)\" > src/ydata_quality/__version__.py + echo "$(version)" > VERSION $(PYTHON) setup.py sdist bdist_wheel install: ### Installs required dependencies diff --git a/setup.py b/setup.py index 7dda10cf..a85b75df 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,11 @@ from setuptools import setup, find_namespace_packages from pathlib import Path -from src.ydata_quality.__version__ import __version__ as version - # Load the local files here = Path(__file__).parent.resolve() requirements = (here / "requirements.txt").read_text(encoding="utf8") long_description = (here / 'README.md').read_text(encoding='utf-8') +version = (here / 'VERSION').read_text().rstrip("\n") setup(name='ydata-quality', version=version,