Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
ec44d31
Add structural files
MajesticSeagull26 Oct 28, 2025
be19a93
Added pick_color function
MajesticSeagull26 Oct 29, 2025
a0c1829
update README.md to include overview of the package
MajesticSeagull26 Oct 29, 2025
ef700ee
Add team member info
MajesticSeagull26 Oct 29, 2025
a9f7992
Merge pull request #1 from swe-students-fall2025/color_function
Coffee859 Oct 30, 2025
b980109
Update decisionMaking.py
Coffee859 Oct 30, 2025
949c82a
rename files
MajesticSeagull26 Oct 31, 2025
b710c5b
Configure package build with pyproject.toml
MajesticSeagull26 Oct 31, 2025
1eef3d4
Add unit test for pick_color function
MajesticSeagull26 Nov 1, 2025
a2f9320
Implement pick_food function
MariaLuo826 Nov 2, 2025
6cefcfe
Merge remote-tracking branch 'origin/pipfile-experiment' into food_fu…
MariaLuo826 Nov 2, 2025
3385b20
Add yml file for github action
MajesticSeagull26 Nov 3, 2025
38e5fd5
Fix directory for pytest in github action
MajesticSeagull26 Nov 3, 2025
0bd6617
Merge pull request #2 from swe-students-fall2025/color_function_tests
MajesticSeagull26 Nov 3, 2025
eac4e70
Merge pull request #3 from swe-students-fall2025/food_function
aa10150 Nov 3, 2025
f674dfb
Added name to team members
aa10150 Nov 3, 2025
2ec298b
debugging
MajesticSeagull26 Nov 3, 2025
0b693b4
Merge branch 'pipfile-experiment' of https://github.com/swe-students-…
MajesticSeagull26 Nov 3, 2025
0c6932d
Attempt github action fix
MajesticSeagull26 Nov 3, 2025
80538e1
Attempt fix part 2
MajesticSeagull26 Nov 3, 2025
5807726
fix test path
MajesticSeagull26 Nov 3, 2025
0414b24
Fix Python version in Pipfile
MajesticSeagull26 Nov 3, 2025
d2df610
Added Github Action badge
MajesticSeagull26 Nov 3, 2025
acf0f7a
Implemented pick_activity function
aa10150 Nov 3, 2025
2ff05b8
Fix README formatting; commenting out deliver part for during develop…
MajesticSeagull26 Nov 3, 2025
164281f
Merge pull request #4 from swe-students-fall2025/activity_function
MajesticSeagull26 Nov 3, 2025
d9e88da
Unit tests for pick_activity
aa10150 Nov 3, 2025
8ba1236
Fixes to unit tests
aa10150 Nov 3, 2025
cc1e637
More fixes for pick_activity unit tests
aa10150 Nov 3, 2025
886c011
Pt 3 fixes for pick_activity unit tests
aa10150 Nov 3, 2025
5834b23
Merge pull request #7 from swe-students-fall2025/activity_function
MajesticSeagull26 Nov 3, 2025
0f7ade5
Change Github Action to only run on pull requests
MajesticSeagull26 Nov 3, 2025
48f8997
Update pick_food with expanded food restrictions
MariaLuo826 Nov 3, 2025
66d631c
Added pick_clothes function to dailyDecision.py
Coffee859 Nov 3, 2025
b8883ec
Fixed dailyDecision.py and added TestPickClothes
Coffee859 Nov 3, 2025
5c43d1b
Update README.md
Coffee859 Nov 3, 2025
4086676
Bug fix
MajesticSeagull26 Nov 4, 2025
f621ddc
bug fix part 2
MajesticSeagull26 Nov 4, 2025
6004af4
Merge pull request #9 from swe-students-fall2025/food_function
MariaLuo826 Nov 4, 2025
f746617
Update README.md
MariaLuo826 Nov 4, 2025
1638577
Merge branch 'pipfile-experiment' into clothes_function
MajesticSeagull26 Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI / CD
on:
pull_request:
branches:
- pipfile-experiment
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
python-version: ["3.9", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Install Python, pipenv and Pipfile packages
uses: kojoru/prepare-pipenv@v1
with:
python-version: ${{ matrix.python-version }}
- name: Turn on 'editable' mode
run: |
pipenv install -e .
- name: Test with pytest
run: |
pipenv install pytest
pipenv --venv
pipenv run python -m pytest tests/tests.py -v
# deliver:
# needs: [build]
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/pipfile-experiment'
# timeout-minutes: 5
# steps:
# - uses: actions/checkout@v4
# - name: Install Python, pipenv and Pipfile packages
# uses: kojoru/prepare-pipenv@v1
# - name: Build package
# run: |
# pipenv install build
# pipenv run python -m build .
# - name: Publish to PyPI test server
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
15 changes: 15 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
dailydecisionpackage = {file = ".", editable = true}

[dev-packages]
pytest = "*"
build = "*"
twine = "*"

[requires]
python_version = "3"
468 changes: 468 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Python Package Exercise
[![CI / CD](https://github.com/swe-students-fall2025/3-python-package-team_aurora/actions/workflows/test.yml/badge.svg)](https://github.com/swe-students-fall2025/3-python-package-team_aurora/actions/workflows/test.yml)
# Python Package Exercise - Daily Decision Helper
## Overview
Do you ever struggle to make everyday decisions? Whether it's choosing what to eat for lunch, picking an outfit color, or deciding what music to listen to, sometimes the smallest choices can feel overwhelming. DailyDecisions is here to help! This Python package takes the stress out of life's minor decisions by providing randomized suggestions when you need them most.

An exercise to create a Python package, build it, test it, distribute it, and use it. See [instructions](./instructions.md) for details.
## Features
This package provides a few functions to help with your daily decision making:
- `pick_clothes(weather, mood)` - a function to help you pick clothes based on the weather and mood.
- `pick_food(dietary_restriction, cuisine)` - a function to help you pick a food based on your dietary restriction.
- `pick_color(mood, season)` - a function to help you pick a color (of clothing) based on your mood and the season.
- `pick_activity(energy_level, weather)` - a function to help you pick an acitvity to do based on your energy level and the weather.

## Team members:
[Maria Lee](https://github.com/MariaLuo826)
[Reece Huey](https://github.com/Coffee859)
[Jubilee Tang](https://github.com/MajesticSeagull26)
[Anshu Aramandla](https://github.com/aa10150)
1 change: 1 addition & 0 deletions examples/exampleUsage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This is the exampel program where we would demonstrates our package's complete functionality.
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "dailyDecisionPackage"
description = "A lighthearted Python package that helps you make everyday decisions."
version = "0.1.1"
authors = [
{ name = "Jubilee Tang", email = "wt2187@nyu.edu" },
{ name = "Maria Luo" },
{ name = "Reece Huey" },
]
license = "GPL-3.0-or-later"
license-files = ["LICENSE"]
readme = "README.md"
keywords = ["python", "package", "daily", "decision", "helper", "color", "food"]
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"Intended Audience :: Education",
"Operating System :: OS Independent",
]

[project.optional-dependencies]
dev = ["pytest", "build", "twine"]

[project.urls]
"Homepage" = "https://github.com/swe-students-fall2025/3-python-package-team_aurora"
"Repository" = "https://github.com/swe-students-fall2025/3-python-package-team_aurora.git"

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
dailyDecisionPackage = ["*.txt", "*.md"]
1 change: 1 addition & 0 deletions src/dailyDecisionPackage/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ignore for now; we will import functions from decisionMaking.py later
Loading