Skip to content

Commit 00449b0

Browse files
committed
fix: setup.py installs requirements (microsoft#14)
* remove settings (microsoft#10) * initial commit * readme update * read me update 2 * lint and license * linting fixes * Create pythonpackage.yml * - update python version * Create pythonpublish.yml * Initial commit of runtime * Linting and license update (microsoft#5) * lint and license * linting fixes * remove .vs * CICD workflows (microsoft#7) * lint and license * linting fixes * - installs dev dependencies * - release workflow * Feature CI/CD workflow (microsoft#9) * - installs dev dependencies * - release workflow * - fix workflow name * settings removed * Clean up (microsoft#11) * initial commit * readme update * read me update 2 * lint and license * linting fixes * Create pythonpackage.yml * - update python version * Create pythonpublish.yml * Initial commit of runtime * Linting and license update (microsoft#5) * lint and license * linting fixes * remove .vs * CICD workflows (microsoft#7) * lint and license * linting fixes * - installs dev dependencies * - release workflow * Feature CI/CD workflow (microsoft#9) * - installs dev dependencies * - release workflow * - fix workflow name * settings removed * remove * Update pythonpublish.yml (microsoft#12) * requirements are read * - version update
1 parent a681fc5 commit 00449b0

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/pythonpublish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
run: |
1818
python -m pip install --upgrade pip
1919
pip install setuptools wheel twine
20+
pip install -r requirements.txt
2021
- name: Build and publish
2122
env:
2223
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

cli/nuttercli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .reportsman import ReportWriters
1818
from . import reportsman as reports
1919

20-
__version__ = '0.1.31'
20+
__version__ = '0.1.32'
2121

2222
BUILD_NUMBER_ENV_VAR = 'NUTTER_BUILD_NUMBER'
2323

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@
55
long_description = fh.read()
66

77
version = nuttercli.get_cli_version()
8+
9+
def parse_requirements(filename):
10+
"""Load requirements from a pip requirements file."""
11+
lineiter = (line.strip() for line in open(filename))
12+
return [line for line in lineiter if line and not line.startswith("#")]
13+
14+
815
setuptools.setup(
916
name="nutter",
1017
version=version,
1118
author="Jesus Aguilar, Rob Bagby",
19+
install_requires=parse_requirements("requirements.txt"),
1220
1321
description="A databricks notebook testing library",
1422
long_description="A databricks notebook testing library",
@@ -25,4 +33,4 @@
2533
"Operating System :: OS Independent",
2634
],
2735
python_requires='>=3.5.2',
28-
)
36+
)

0 commit comments

Comments
 (0)