Skip to content

Commit

Permalink
Merge pull request #102 from Phanabani/release/2.0.0
Browse files Browse the repository at this point in the history
Release/2.0.0
  • Loading branch information
Phanabani authored Nov 13, 2022
2 parents d0d3d90 + 17d5653 commit 92b7a71
Show file tree
Hide file tree
Showing 79 changed files with 4,244 additions and 3,498 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,39 @@

name: Python application

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install flake8 pytest
if [ -f Pipfile.lock ]; then pipenv sync --dev; fi
python -m pip install --user pipx
python -m pipx ensurepath
pipx install poetry
if [ -f poetry.lock ]; then poetry install --no-root; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
pipenv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
pipenv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pipenv run pytest
poetry run pytest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ profile_default/
ipython_config.py

# pyenv
.python-version
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10.6
141 changes: 141 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
# Changelog

Hi! Here is Sandpiper's version history. Look at her journey! c:


## Table of contents

- [2.0.0 - Thread support](#200---thread-support)
- [1.6.0 - Birthday notifications](#160---birthday-notifications)
- [1.5.0 - Better conversions and test coverage](#150---better-conversions-and-test-coverage)
- [1.4.1](#141)
- [1.4.0 - Better help messages and various improvements](#140---better-help-messages-and-various-improvements)
- [1.3.0 - Async database and unit testing](#130---async-database-and-unit-testing)
- [1.2.2](#122)
- [1.2.1](#121)
- [1.2.0 - Time conversion](#120---time-conversion)
- [1.1.0 - User bios](#110---user-bios)
- [1.0.0 - Unit conversion](#100---unit-conversion)


## 2.0.0 - Thread support

### Feature

- Add support for Discord threads

### Change (internal)
- Upgrade to Python 3.10
- Use Poetry
- Reformat with black
- Migrate to discord.py v2
- Optimize imports in all files

### Fix (internal)

- Fix flaky unit tests for discord.py v2


## 1.6.0 - Birthday notifications

### Feature

- Add birthday notifications
- Add `birthdays upcoming` command


## 1.5.0 - Better conversions and test coverage

### Feature

- Add the ability to specify and input and/or output timezone for time conversions
- Add a ton of new default unit conversion mappings

### Change (internal)

- Massively upgrade the conversions test suite to test many more conversion scenarios and allow for more easily adding tests in the future


## 1.4.1

### Feature

- Add "noon", "now", and "midnight" keywords for time conversion

### Change

- Allow time strings to be written without a colon separating hour and minutes (1430 = 14:30)


## 1.4.0 - Better help messages and various improvements

Help messages are now more meaningful! One shouldn't need to come to the repo
anymore to figure out how to use a command. Various bugfixes and quality of
life changes are also included.

### Feature

- Improve help messages


## 1.3.0 - Async database and unit testing

Switched to an asynchronous API for the database and added unit tests to ensure
functionality remains stable after large changes like this.

### Feature (internal)

- Add unit tests

### Change (internal)

- Use an async database API


## 1.2.2

Fixed an issue where null timezones weren't handled.

### Fix

- Fix null timezones not being handled


## 1.2.1

Fixes an issue where duplicate timezones are printed in time conversion output
if multiple users share the timezone.

### Fix

- Fix duplicate timezones showing in timezone list


## 1.2.0 - Time conversion

Added time conversion. Users can now convert a time to all timezones of users
in a server.

### Feature

- Add time conversion


## 1.1.0 - User bios

Added user bios. Users can store some personal information in Sandpiper so that
others can get to know them better.

### Feature

- Add user bios commands


## 1.0.0 - Unit conversion

Sandpiper's debut! Currently featuring unit conversion between imperial and
metric measurements.

### Feature

- Add unit conversion
29 changes: 0 additions & 29 deletions Pipfile

This file was deleted.

Loading

0 comments on commit 92b7a71

Please sign in to comment.