-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow running tool as package or script #7
Open
patcon
wants to merge
11
commits into
Welltory:master
Choose a base branch
from
patcon:packaged
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
704f974
Moved files into named module zoom2youtube.
patcon 3ce8176
Added missing ZOOM_PAGE_SIZE setting.
patcon 94ea707
Updated crontab path after dir change.
patcon 8e90677
Moved main() into own function.
patcon 305677b
Allowed zoom2youtube to work as python package.
patcon 9262fa1
Added use of pipenv to lock versions.
patcon 942632e
Used pipenv-sync to keep setup.py packages up-to-date.
patcon 351c991
Added helper make tasks for packaging.
patcon b8ea7b6
Added README instructions for using packaged version.
patcon 5ff7393
Oops. README typo.
patcon b943917
Bugfix missing self.page_size.
patcon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
requests = "==2.20.0" | ||
python-dotenv = "==0.6.4" | ||
google-api-python-client = "==1.6.2" | ||
httplib2 = "*" | ||
PyJWT = "*" | ||
|
||
[dev-packages] | ||
pipenv-setup = "*" | ||
|
||
[requires] | ||
python_version = "3.8" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
*/5 * * * * /usr/local/bin/python3.7 /opt/app/src/main.py >> /var/log/cron.log 2>&1 | ||
*/5 * * * * /usr/local/bin/python3.7 /opt/app/src/zoom2youtube/main.py >> /var/log/cron.log 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta:__legacy__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from os.path import splitext, basename | ||
|
||
from glob import glob | ||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
install_requires=[ | ||
"certifi==2020.12.5", | ||
"chardet==3.0.4", | ||
"click==7.1.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", | ||
"google-api-python-client==1.6.2", | ||
"httplib2==0.19.1", | ||
"idna==2.7", | ||
"oauth2client==4.1.3", | ||
"pyasn1==0.4.8", | ||
"pyasn1-modules==0.2.8", | ||
"pyjwt==2.1.0", | ||
"pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", | ||
"python-dotenv==0.6.4", | ||
"requests==2.20.0", | ||
"rsa==4.7.2; python_version >= '3.5' and python_version < '4'", | ||
"six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", | ||
"uritemplate==3.0.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", | ||
"urllib3==1.24.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' and python_version < '4'", | ||
], | ||
name="zoom2youtube", | ||
version="0.0.1", | ||
description="Transfer video recordings from the Zoom to YouTube", | ||
url="https://github.com/Welltory/Zoom2Youtube/", | ||
author="Welltory", | ||
author_email="[email protected]", | ||
license="MIT", | ||
packages=find_packages("src"), | ||
package_dir={"": "src"}, | ||
include_package_data=True, | ||
py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")], | ||
entry_points={"console_scripts": ["zoom2youtube=zoom2youtube.main:main",],}, | ||
zip_safe=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import os, sys | ||
sys.path.append(os.path.dirname(__file__)) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge this before accepting PR :)