Skip to content

Commit

Permalink
re-structure requirements gathering
Browse files Browse the repository at this point in the history
This commit was sponsored by Jacob Kaplan-Moss, hacklschorsch, Derek
Veit, and my other patrons.  If you want to join them, you can support
my work at https://glyph.im/patrons/.
  • Loading branch information
glyph committed Dec 1, 2024
1 parent 3625f0b commit a033cd9
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 74 deletions.
3 changes: 3 additions & 0 deletions pindeps
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

pip-compile --strip-extras --quiet --upgrade --allow-unsafe --no-emit-index-url
File renamed without changes.
45 changes: 44 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,52 @@
[build-system]
requires = [
"setuptools>=42",
"setuptools>=42,<71.0.0",
"wheel",
]
build-backend = "setuptools.build_meta"

[project]
name = "Pomodouroboros"
authors=[
{ name = "Glyph", email = "code@glyph.im" },
]
description = "An extremely opinionated pomodoro system."
readme = "README.md"
dependencies = [
# core dependencies
"twisted[tls,http2]",
"python-dateutil",
"ulid-py",
"datetype",
"fritter",
"setuptools<71.0.0",

"pip-tools",
"mypy",
"mypy-zope",
"types-python-dateutil",

"py2app ; sys_platform == 'darwin'",
"pyobjc-core ; sys_platform == 'darwin'",
"pyobjc-framework-Cocoa ; sys_platform == 'darwin'",
"pyobjc-framework-ExceptionHandling ; sys_platform == 'darwin'",
"pyobjc-framework-UserNotifications ; sys_platform == 'darwin'",
"pyobjc-framework-CFNetwork ; sys_platform == 'darwin'",
"quickmacapp ; sys_platform == 'darwin'",
"quickmachotkey ; sys_platform == 'darwin'",
"encrust ; sys_platform == 'darwin'",
]
classifiers = [
"Programming Language :: Python :: 3",
]
version = "0.4.8"

[project.urls]
Source = "https://github.com/glyph/Pomodouroboros"
Bug-Tracker = "https://github.com/glyph/Pomodouroboros/issues"
[project.scripts]
pom = "pomodouroboros.cli:main"

[tool.black]
line-length = 79

Expand All @@ -17,3 +59,4 @@ line_length = 79
ignore = [
"E731",
]

22 changes: 0 additions & 22 deletions requirements.in

This file was deleted.

44 changes: 22 additions & 22 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --allow-unsafe --no-emit-index-url
# pip-compile --allow-unsafe --no-emit-index-url --strip-extras
#
altgraph==0.17.4
# via
Expand Down Expand Up @@ -45,14 +45,14 @@ cython-test-exception-raiser==1.0.2
# via twisted
datetype==2024.2.28
# via
# -r requirements.in
# Pomodouroboros (pyproject.toml)
# fritter
delocate==0.12.0
# via encrust
encrust==2024.9.3 ; sys_platform == "darwin"
# via -r requirements.in
# via Pomodouroboros (pyproject.toml)
fritter==0.0.9
# via -r requirements.in
# via Pomodouroboros (pyproject.toml)
h11==0.14.0
# via httpcore
h2==4.1.0
Expand All @@ -63,7 +63,7 @@ hpack==4.0.0
# via h2
httpcore==1.0.7
# via httpx
httpx[http2]==0.28.0
httpx==0.28.0
# via twisted
hyperframe==6.0.1
# via h2
Expand All @@ -87,24 +87,24 @@ modulegraph==0.19.6
# via py2app
mypy==1.13.0
# via
# -r requirements.in
# Pomodouroboros (pyproject.toml)
# mypy-zope
mypy-extensions==1.0.0
# via mypy
mypy-zope==1.0.9
# via -r requirements.in
# via Pomodouroboros (pyproject.toml)
packaging==24.2
# via
# build
# delocate
# py2app
pip-tools==7.4.1
# via -r requirements.in
# via Pomodouroboros (pyproject.toml)
priority==1.3.0
# via twisted
py2app==0.28.8 ; sys_platform == "darwin"
# via
# -r requirements.in
# Pomodouroboros (pyproject.toml)
# encrust
pyasn1==0.6.1
# via
Expand All @@ -118,7 +118,7 @@ pyhamcrest==2.1.0
# via twisted
pyobjc-core==10.3.2 ; sys_platform == "darwin"
# via
# -r requirements.in
# Pomodouroboros (pyproject.toml)
# pyobjc-framework-cfnetwork
# pyobjc-framework-cocoa
# pyobjc-framework-exceptionhandling
Expand All @@ -127,23 +127,23 @@ pyobjc-core==10.3.2 ; sys_platform == "darwin"
# twisted
pyobjc-framework-cfnetwork==10.3.2 ; sys_platform == "darwin"
# via
# -r requirements.in
# Pomodouroboros (pyproject.toml)
# twisted
pyobjc-framework-cocoa==10.3.2 ; sys_platform == "darwin"
# via
# -r requirements.in
# Pomodouroboros (pyproject.toml)
# pyobjc-framework-cfnetwork
# pyobjc-framework-exceptionhandling
# pyobjc-framework-usernotifications
# quickmacapp
# twisted
pyobjc-framework-exceptionhandling==10.3.2 ; sys_platform == "darwin"
# via
# -r requirements.in
# Pomodouroboros (pyproject.toml)
# quickmacapp
pyobjc-framework-usernotifications==10.3.2 ; sys_platform == "darwin"
# via
# -r requirements.in
# Pomodouroboros (pyproject.toml)
# quickmacapp
pyopenssl==24.3.0
# via twisted
Expand All @@ -154,11 +154,11 @@ pyproject-hooks==1.2.0
pyserial==3.5
# via twisted
python-dateutil==2.9.0.post0
# via -r requirements.in
# via Pomodouroboros (pyproject.toml)
quickmacapp==2023.4.24 ; sys_platform == "darwin"
# via -r requirements.in
# via Pomodouroboros (pyproject.toml)
quickmachotkey==2023.11.17 ; sys_platform == "darwin"
# via -r requirements.in
# via Pomodouroboros (pyproject.toml)
service-identity==24.2.0
# via twisted
six==1.16.0
Expand All @@ -167,13 +167,13 @@ sniffio==1.3.1
# via anyio
sortedcontainers==2.4.0
# via hypothesis
twisted[http2,tls]==24.10.0
twisted==24.10.0
# via
# -r requirements.in
# Pomodouroboros (pyproject.toml)
# encrust
# quickmacapp
types-python-dateutil==2.9.0.20241003
# via -r requirements.in
# via Pomodouroboros (pyproject.toml)
typing-extensions==4.12.2
# via
# delocate
Expand All @@ -182,7 +182,7 @@ typing-extensions==4.12.2
tzdata==2024.2
# via fritter
ulid-py==1.1.0
# via -r requirements.in
# via Pomodouroboros (pyproject.toml)
wheel==0.45.1
# via pip-tools
wheel-filename==1.4.1
Expand All @@ -202,7 +202,7 @@ pip==24.3.1
# via pip-tools
setuptools==70.3.0
# via
# -r requirements.in
# Pomodouroboros (pyproject.toml)
# incremental
# modulegraph
# pip-tools
Expand Down
2 changes: 1 addition & 1 deletion runme
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
mypy ./src;
rm -fr ./build ./dist;
# https://github.com/ronaldoussoren/py2app/issues/444
python setup.py py2app --alias | cat;
python py2app_setup.py py2app --alias | cat;
rm -fr ./build;
exec ./dist/Pomodouroboros.app/Contents/MacOS/Pomodouroboros;
27 changes: 0 additions & 27 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
[metadata]
name = Pomodouroboros
version = 0.4.7
author = Glyph
author_email = glyph@glyph.im
description = An extremely opinionated pomodoro system.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/glyph/Pomodouroboros
project_urls =
Bug Tracker = https://github.com/glyph/Pomodouroboros/issues
classifiers =
Programming Language :: Python :: 3

[options]
package_dir =
= src
packages = find:
python_requires = >=3.6

[options.packages.find]
where = src

[options.entry_points]
console_scripts =
pom = pomodouroboros.cli:main

[flake8]
# ObjC method names create too many impossible-to-shorten lines
# W503 seems at odds with black?
Expand Down
2 changes: 1 addition & 1 deletion testme
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ mypy ./src;
rm -fr ./dist/TestPomodouroboros.app;
export TEST_MODE=YES;
# https://github.com/ronaldoussoren/py2app/issues/444
python setup.py py2app --alias | cat;
python py2app_setup.py py2app --alias | cat;
./dist/TestPomodouroboros.app/Contents/MacOS/TestPomodouroboros;

0 comments on commit a033cd9

Please sign in to comment.