Skip to content

Commit

Permalink
chore(release): prepare alpha release (#28)
Browse files Browse the repository at this point in the history
Fixes:
* (requirements) added missing statsmodels, twine dependencies
  • Loading branch information
UrbanoFonseca authored Sep 21, 2021
1 parent 66ccf7f commit 73073f5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
20 changes: 17 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PYTHON = python
PIP = pip
version := next
VENV := $(PWD)/.venv
PYTHON = $(VENV)/bin/python
PIP := $(PYTHON) -m pip
version := v0.1-alpha

.PHONY: help lint test package clean install

Expand All @@ -13,6 +14,16 @@ else
$(MAKEFILE_LIST) | grep -v '@awk' | sort
endif

clean-env: ### Removes environment directory
rm -rf $(VENV)

env: ### Create a virtual environment
test -d $(VENV) || python -m venv $(VENV)
$(PIP) install -r requirements.txt

env-dev: env
$(PIP) install -r requirements-dev.txt

lint: ### Validates project with linting rules
$(PIP) install pylint
$(PYTHON) -m pylint src/
Expand All @@ -31,3 +42,6 @@ clean: ### Removes build binaries

install: ### Installs required dependencies
$(PIP) install dist/ydata-quality-$(version).tar.gz

upload:
$(PYTHON) -m twine upload dist/*
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ pylint
pytest
sphinx
myst-parser
twine
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ pydantic==1.8.2
scikit-learn==0.24.2
matplotlib==3.4.2
dython==0.6.7
statsmodels==0.12.2
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
from fileinput import FileInput
from setuptools import setup, find_namespace_packages
from pathlib import Path


# 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")

# Save the version file within the package directory
with open('src/ydata_quality/version.py', 'w') as version_file:
version_file.write(f'__version__ = \'{version}\'')

Expand All @@ -21,7 +19,7 @@
author='YData',
author_email='community@ydata.ai',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Development Status :: 3 - Alpha'
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
Expand All @@ -47,4 +45,4 @@
package_dir={'':'src'},
include_package_data=True,
options={"bdist_wheel": {"universal": True}},
install_requires=requirements)
install_requires=requirements)

0 comments on commit 73073f5

Please sign in to comment.