Skip to content

Commit 0b3ad2f

Browse files
authored
Merge pull request #14 from sudiptob2/docs/13-packaging-prep
Docs/13 packaging prep
2 parents 03bb725 + 8e2221f commit 0b3ad2f

File tree

10 files changed

+40
-55
lines changed

10 files changed

+40
-55
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CHANGELOG.md
2+
3+
## 0.1.3 (Pre-Alpha)
4+
5+
Features:
6+
7+
- schedule for 2 problem difficulty
8+
- python 3.8 support
9+
- notification icon support

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include leeteasy *.png

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ pytest = "*"
1515
pytest-mock = "*"
1616

1717
[requires]
18-
python_version = "3.10"
18+
python_version = "3.8"

Pipfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

leeteasy/assets/__init__.py

Whitespace-only changes.
File renamed without changes.

leeteasy/services/notification_service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from pathlib import Path
2+
13
from notifypy import Notify
24

35
from leeteasy.services.request_handler import RequestHandler
@@ -28,5 +30,6 @@ def notify(cls):
2830
notification.message = cls.prepare_notification()
2931
notification.title = f'{cls.app_name} - {cls.challenge.difficulty} ' \
3032
f'Problem Alert \U0001F514'
31-
notification.icon = 'assets/leetcoin.png'
33+
resource_path = Path(__file__).parent.parent / 'assets/leetcoin.png'
34+
notification.icon = resource_path
3235
notification.send()

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=45",
4+
]
5+
build-backend = "setuptools.build_meta"

requirements.txt

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
1-
attrs==22.1.0
2-
certifi==2022.9.24
3-
charset-normalizer==2.1.1
4-
click==8.1.3
5-
idna==3.4
6-
iniconfig==1.1.1
7-
jeepney==0.8.0
8-
loguru==0.5.3
9-
mccabe==0.7.0
1+
requests~=2.28.1
2+
click~=8.1.3
3+
schedule~=1.1.0
104
notify-py==0.3.3
11-
packaging==21.3
12-
pluggy==1.0.0
13-
py==1.11.0
14-
pycodestyle==2.9.1
15-
pyflakes==2.5.0
16-
pyparsing==3.0.9
17-
requests==2.28.1
18-
schedule==1.1.0
19-
tomli==2.0.1
20-
urllib3==1.26.12

setup.cfg

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
2-
name = leet-easy
3-
version = 0.1.0
2+
name = leeteasy
3+
version = 0.1.3
44
author = Sudipto Baral
55
author_email = [email protected]
66
description = Desktop notification of easy daily challenge of leetcode.
@@ -9,49 +9,32 @@ long_description_content_type = text/markdown
99
url = https://github.com/sudiptob2/leet-easy
1010

1111
classifiers =
12-
Development Status :: 0 - Alpha
12+
Development Status :: 2 - Pre-Alpha
1313
Environment :: Console
1414
Intended Audience :: Information Technology
15-
License :: GNU General Public License v3.0
15+
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
1616
Operating System :: MacOS
1717
Operating System :: Microsoft
1818
Operating System :: POSIX :: Linux
19-
Programming Language :: Python :: 3.10
20-
Topic :: notification :: Leetcode
21-
Topic :: Problem solving
22-
Topic :: easy problem
23-
Topic :: Desktop Notification
19+
Programming Language :: Python :: 3.8
20+
Topic :: Software Development
21+
Topic :: Terminals
2422

2523
[options]
2624
package_dir =
27-
app=app
25+
leeteasy=leeteasy
2826
packages = find_namespace:
29-
python_requires = >=3.10
27+
python_requires = >=3.8
28+
include_package_data = True
3029

3130
install_requires =
31+
requests~=2.28.1
32+
click~=8.1.3
33+
schedule~=1.1.0
34+
notify-py==0.3.3
3235

3336
[options.packages.find]
3437
where =
35-
attrs==22.1.0
36-
certifi==2022.9.24
37-
charset-normalizer==2.1.1
38-
click==8.1.3
39-
idna==3.4
40-
iniconfig==1.1.1
41-
jeepney==0.8.0
42-
loguru==0.5.3
43-
mccabe==0.7.0
44-
notify-py==0.3.3
45-
packaging==21.3
46-
pluggy==1.0.0
47-
py==1.11.0
48-
pycodestyle==2.9.1
49-
pyflakes==2.5.0
50-
pyparsing==3.0.9
51-
requests==2.28.1
52-
schedule==1.1.0
53-
tomli==2.0.1
54-
urllib3==1.26.12
5538

5639
exclude =
5740
tests

0 commit comments

Comments
 (0)