Skip to content

Commit 466ee91

Browse files
authored
Use requirements.txt for dependencies (#26)
* Remove checked in dependencies and replace with requirements.txt * Bump version to 1.1.0 * Remove TODO from .gitignore
1 parent 711fb8d commit 466ee91

File tree

347 files changed

+18
-141038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

347 files changed

+18
-141038
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ dist/
132132
downloads/
133133
eggs/
134134
.eggs/
135-
# TODO: Deterministically generate lib without checking it in
136-
# lib/ Ignored as we use this for the workflow
135+
lib/
137136
lib64/
138137
parts/
139138
sdist/

.idea/alfred-py3-default-browser.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/watcherTasks.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8.13
1+
3.9.6

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ If you have any questions or feature requests then
5353
please [file an Issue](https://github.com/wmorland/alfred-py3-default-browser/issues/new)
5454
on GitHub or reach out to me on Twitter, [@w_morland](https://twitter.com/w_morland).
5555

56+
## Dependencies
57+
58+
To build the workflow locally from source you must run
59+
`/usr/bin/python3 -m pip install --target=./lib -r requirements.txt` as the script
60+
expects the dependencies to be placed in a local folder.
61+
5662
## Contributing
5763

5864
Pull requests are welcome. For major changes, please open an issue first to discuss what

__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.0"
1+
__version__ = "1.1.0"
22

33
if __name__ == "__main__":
44
print(__version__)

defaultbrowser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# setup access to the local lib directory
1212
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + "/lib") # noqa
1313

14-
from workflow import Workflow3
14+
from workflow import Workflow
1515
import objc
1616
import CoreFoundation
1717
from CoreServices import LaunchServices
@@ -52,7 +52,7 @@ def set_browser(browser: str):
5252
)
5353

5454

55-
def main(wf: Workflow3):
55+
def main(wf: Workflow):
5656
try:
5757
current_default = get_current_default_browser()
5858
browsers = get_browsers()
@@ -112,5 +112,5 @@ def main(wf: Workflow3):
112112
elif args.current:
113113
print(get_current_default_browser())
114114
else:
115-
nwf = Workflow3()
115+
nwf = Workflow()
116116
nwf.run(main)

lib/AppKit/__init__.py

Lines changed: 0 additions & 187 deletions
This file was deleted.

lib/AppKit/_metadata.py

Lines changed: 0 additions & 23328 deletions
This file was deleted.

0 commit comments

Comments
 (0)