Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
[apps] Add packaging files
Browse files Browse the repository at this point in the history
  • Loading branch information
GokulNC committed Nov 10, 2020
1 parent 4b9722b commit 1107338
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.vscode
data/*
hypotheses/*
apps/models/*
apps/ai4bharat/transliteration/models/*/*
*.egg-info/
build/
dist/
logs
*.log
temp*
Expand Down
2 changes: 2 additions & 0 deletions apps/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include ai4bharat/transliteration/models/*
include dependencies.txt
6 changes: 6 additions & 0 deletions apps/dependencies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
torch
numpy
pydload
flask
flask_cors
gevent
32 changes: 32 additions & 0 deletions apps/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import pathlib
from setuptools import setup, find_packages
import pkg_resources

# The directory containing this file
HERE = pathlib.Path(__file__).parent

# The text of the README file
README = (HERE / "README.md").read_text(encoding='utf-8')

with pathlib.Path('dependencies.txt').open() as requirements_txt:
install_requires = [
str(requirement)
for requirement
in pkg_resources.parse_requirements(requirements_txt)
]

# This call to setup() does all the work
setup(
name="ai4bharat-transliteration",
version="0.5.0",
description="Deep Transliteration for Indic Languages",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/AI4Bharat/IndianNLP-Transliteration",
author="AI4Bharat",
author_email="[email protected]",
packages=["ai4bharat.transliteration"],
# packages=find_packages(exclude=("tests",)),
include_package_data=True,
install_requires=install_requires,
)

0 comments on commit 1107338

Please sign in to comment.