Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(reqs): move requirements to folder
- Loading branch information
Showing
7 changed files
with
41 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,4 @@ | ||
openpyxl | ||
click | ||
coloredlogs<=14.0 | ||
dnspython>=2.1.0 | ||
eventlet>=0.33.0 | ||
flask-cors>=3.0.9 | ||
Flask>=2.0.0 | ||
flask_socketio==4.3.2 | ||
flask-talisman>=0.7.0 | ||
flask-restful>=0.3.9 | ||
gunicorn @ git+https://github.com/benoitc/gunicorn.git@ff58e0c | ||
networkx | ||
panphon>=0.19 | ||
python-engineio==3.14.2 | ||
python-socketio==4.6.1 | ||
pyyaml>=5.2 | ||
regex | ||
requests | ||
tqdm | ||
text_unidecode | ||
# Minimal requirements for all uses of g2p | ||
-r requirements/requirements.txt | ||
# Additional requirements for production deployment | ||
-r requirements/requirements.prod.txt |
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 @@ | ||
All development and normal use requirements are in requirements.txt - we use a specific version of gunicorn to run the g2p studio in production, and don't want to introduce git as a dependency, so we separate these requirements here. |
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 @@ | ||
gunicorn @ git+https://github.com/benoitc/gunicorn.git@ff58e0c |
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,19 @@ | ||
openpyxl | ||
click | ||
coloredlogs<=14.0 | ||
dnspython>=2.1.0 | ||
eventlet>=0.33.0 | ||
flask-cors>=3.0.9 | ||
Flask>=2.0.0 | ||
flask_socketio==4.3.2 | ||
flask-talisman>=0.7.0 | ||
flask-restful>=0.3.9 | ||
networkx | ||
panphon>=0.19 | ||
python-engineio==3.14.2 | ||
python-socketio==4.6.1 | ||
pyyaml>=5.2 | ||
regex | ||
requests | ||
tqdm | ||
text_unidecode |
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,43 +1,42 @@ | ||
''' Setup for g2p | ||
''' | ||
""" Setup for g2p | ||
""" | ||
from os import path | ||
import datetime as dt | ||
from setuptools import setup, find_packages | ||
|
||
build_no = dt.datetime.today().strftime('%Y%m%d') | ||
build_no = dt.datetime.today().strftime("%Y%m%d") | ||
|
||
# Ugly hack to read the current version number without importing g2p: | ||
# (works by ) | ||
with open("g2p/_version.py", "r", encoding="utf8") as version_file: | ||
namespace = {} | ||
exec(version_file.read(), namespace) | ||
VERSION = namespace['VERSION'] + "." + build_no | ||
VERSION = namespace["VERSION"] + "." + build_no | ||
|
||
this_directory = path.abspath(path.dirname(__file__)) | ||
|
||
with open(path.join(this_directory, 'README.md'), encoding='utf8') as f: | ||
with open(path.join(this_directory, "README.md"), encoding="utf8") as f: | ||
long_description = f.read() | ||
|
||
with open(path.join(this_directory, 'requirements.txt'), encoding='utf8') as f: | ||
with open( | ||
path.join(this_directory, "requirements", "requirements.txt"), encoding="utf8" | ||
) as f: | ||
REQS = f.read().splitlines() | ||
|
||
setup( | ||
name='g2p', | ||
python_requires='>=3.6', | ||
name="g2p", | ||
python_requires=">=3.6", | ||
version=VERSION, | ||
author="Aidan Pine", | ||
author_email="hello@aidanpine.ca", | ||
license="MIT", | ||
url="https://github.com/roedoejet/g2p", | ||
description='Module for creating context-aware, rule-based G2P mappings that preserve indices', | ||
description="Module for creating context-aware, rule-based G2P mappings that preserve indices", | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
long_description_content_type="text/markdown", | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=REQS, | ||
entry_points={ | ||
'console_scripts': [ | ||
'g2p = g2p.cli:cli' | ||
]}, | ||
zip_safe=False | ||
entry_points={"console_scripts": ["g2p = g2p.cli:cli"]}, | ||
zip_safe=False, | ||
) |