Skip to content

Commit

Permalink
chore(packaging): write VERSION to temporary file (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
portellaa authored Sep 22, 2021
1 parent 8b30242 commit 48e8459
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 48e8459

Please sign in to comment.