Skip to content

Commit

Permalink
Merge pull request #14 from sudiptob2/docs/13-packaging-prep
Browse files Browse the repository at this point in the history
Docs/13 packaging prep
  • Loading branch information
sudiptob2 authored Sep 26, 2022
2 parents 03bb725 + 8e2221f commit 0b3ad2f
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 55 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CHANGELOG.md

## 0.1.3 (Pre-Alpha)

Features:

- schedule for 2 problem difficulty
- python 3.8 support
- notification icon support
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include leeteasy *.png
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ pytest = "*"
pytest-mock = "*"

[requires]
python_version = "3.10"
python_version = "3.8"
6 changes: 3 additions & 3 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added leeteasy/assets/__init__.py
Empty file.
File renamed without changes
5 changes: 4 additions & 1 deletion leeteasy/services/notification_service.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from pathlib import Path

from notifypy import Notify

from leeteasy.services.request_handler import RequestHandler
Expand Down Expand Up @@ -28,5 +30,6 @@ def notify(cls):
notification.message = cls.prepare_notification()
notification.title = f'{cls.app_name} - {cls.challenge.difficulty} ' \
f'Problem Alert \U0001F514'
notification.icon = 'assets/leetcoin.png'
resource_path = Path(__file__).parent.parent / 'assets/leetcoin.png'
notification.icon = resource_path
notification.send()
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build-system]
requires = [
"setuptools>=45",
]
build-backend = "setuptools.build_meta"
22 changes: 3 additions & 19 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
attrs==22.1.0
certifi==2022.9.24
charset-normalizer==2.1.1
click==8.1.3
idna==3.4
iniconfig==1.1.1
jeepney==0.8.0
loguru==0.5.3
mccabe==0.7.0
requests~=2.28.1
click~=8.1.3
schedule~=1.1.0
notify-py==0.3.3
packaging==21.3
pluggy==1.0.0
py==1.11.0
pycodestyle==2.9.1
pyflakes==2.5.0
pyparsing==3.0.9
requests==2.28.1
schedule==1.1.0
tomli==2.0.1
urllib3==1.26.12
45 changes: 14 additions & 31 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = leet-easy
version = 0.1.0
name = leeteasy
version = 0.1.3
author = Sudipto Baral
author_email = [email protected]
description = Desktop notification of easy daily challenge of leetcode.
Expand All @@ -9,49 +9,32 @@ long_description_content_type = text/markdown
url = https://github.com/sudiptob2/leet-easy

classifiers =
Development Status :: 0 - Alpha
Development Status :: 2 - Pre-Alpha
Environment :: Console
Intended Audience :: Information Technology
License :: GNU General Public License v3.0
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Operating System :: MacOS
Operating System :: Microsoft
Operating System :: POSIX :: Linux
Programming Language :: Python :: 3.10
Topic :: notification :: Leetcode
Topic :: Problem solving
Topic :: easy problem
Topic :: Desktop Notification
Programming Language :: Python :: 3.8
Topic :: Software Development
Topic :: Terminals

[options]
package_dir =
app=app
leeteasy=leeteasy
packages = find_namespace:
python_requires = >=3.10
python_requires = >=3.8
include_package_data = True

install_requires =
requests~=2.28.1
click~=8.1.3
schedule~=1.1.0
notify-py==0.3.3

[options.packages.find]
where =
attrs==22.1.0
certifi==2022.9.24
charset-normalizer==2.1.1
click==8.1.3
idna==3.4
iniconfig==1.1.1
jeepney==0.8.0
loguru==0.5.3
mccabe==0.7.0
notify-py==0.3.3
packaging==21.3
pluggy==1.0.0
py==1.11.0
pycodestyle==2.9.1
pyflakes==2.5.0
pyparsing==3.0.9
requests==2.28.1
schedule==1.1.0
tomli==2.0.1
urllib3==1.26.12

exclude =
tests
Expand Down

0 comments on commit 0b3ad2f

Please sign in to comment.