-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some restructuring of the file system and cleanup. Prepared for v_0.2…
….3 release.
- Loading branch information
Showing
18 changed files
with
49 additions
and
40 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.DS_Store | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
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,5 @@ | ||
pysubs2==1.0.0 | ||
googletrans==3.1.0a0 | ||
google-trans-new==1.1.9 | ||
chardet==3.0.4 | ||
requests==2.27.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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import setuptools | ||
from setuptools import find_packages, setup | ||
|
||
with open('README.md', 'r') as fh: | ||
long_description = fh.read().strip() | ||
|
||
with open('version.txt', 'r') as fh: | ||
version = fh.read().strip() | ||
|
||
setuptools.setup( | ||
SETUP_ARGS = dict( | ||
name='translatesubs', | ||
version=version, | ||
license='Apache-2.0', | ||
author='Montvydas Klumbys', | ||
author_email='motnvydas[email protected]', | ||
author_email='montvydas[email protected]', | ||
description='It is a tool to translate subtitles into any language, that is supported by google translator', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/Montvydas/translatesubs', | ||
download_url=f'https://github.com/Montvydas/translatesubs/archive/v_{version}.tar.gz', | ||
keywords=['SUBTITLES', 'TRANSLATE'], | ||
packages=setuptools.find_packages(), | ||
packages=find_packages(), | ||
install_requires=[ | ||
'pysubs2==1.0.0', | ||
'googletrans==3.1.0a0', | ||
|
@@ -36,7 +36,11 @@ | |
python_requires='>=3.6', | ||
entry_points={ | ||
'console_scripts': [ | ||
'translatesubs=translatesubs.translatesubs:main' | ||
'translatesubs=translatesubs.main:main' | ||
] | ||
}, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
setup(**SETUP_ARGS) |
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.
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
Empty file.
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
4 changes: 2 additions & 2 deletions
4
translatesubs/translator/itranslator.py → translatesubs/translators/itranslator.py
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.
Empty file.
4 changes: 2 additions & 2 deletions
4
translatesubs/constants.py → translatesubs/utils/constants.py
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.
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 @@ | ||
0.2.2 | ||
0.2.3 |