-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Localization internationalization workflow (#131)
* add workflow for updating translation files
- Loading branch information
1 parent
38b6c0a
commit d8190b3
Showing
14 changed files
with
684 additions
and
579 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
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
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,20 +1,56 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
"""Setup and packaging for Synse Server.""" | ||
|
||
from setuptools import setup, find_packages | ||
import os | ||
|
||
import synse | ||
from babel.messages import frontend as babel | ||
from setuptools import find_packages, setup | ||
|
||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
# Load the package's __init__.py file as a dictionary. | ||
pkg = {} | ||
with open(os.path.join(here, 'synse', '__init__.py')) as f: | ||
exec(f.read(), pkg) | ||
|
||
# Load the README | ||
readme = "" | ||
if os.path.exists('README.md'): | ||
with open('README.md', 'r') as f: | ||
readme = f.read() | ||
|
||
# Load the requirements | ||
with open('requirements.txt', 'r') as f: | ||
requirements = f.read().split('\n') | ||
|
||
|
||
setup( | ||
name=synse.__title__, | ||
version=synse.__version__, | ||
description=synse.__description__, | ||
url=synse.__url__, | ||
author=synse.__author__, | ||
author_email=synse.__author_email__, | ||
license='GNU General Public License v2.0', | ||
python_requires='==3.6', | ||
name=pkg['__title__'], | ||
version=pkg['__version__'], | ||
description=pkg['__description__'], | ||
url=pkg['__url__'], | ||
author=pkg['__author__'], | ||
author_email=pkg['__author_email__'], | ||
license=pkg['__license__'], | ||
packages=find_packages(), | ||
zip_safe=False | ||
include_package_data=True, | ||
package_data={'': ['LICENSE']}, | ||
python_requires='==3.6', | ||
install_requires=requirements, | ||
zip_safe=False, | ||
classifiers=[ | ||
'Natural Language :: English', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
], | ||
cmdclass={ | ||
'compile_catalog': babel.compile_catalog, | ||
'extract_messages': babel.extract_messages, | ||
'init_catalog': babel.init_catalog, | ||
} | ||
) |
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
Oops, something went wrong.