Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunwoongko committed Dec 4, 2022
1 parent e1837e3 commit 8d699e7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

34 changes: 34 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import codecs
import os

from setuptools import setup, find_packages


version = None
author = None
with open(os.path.join("kss", "__init__.py"), encoding="utf-8") as f:
for line in f:
if line.strip().startswith("__version__"):
version = line.split("=")[1].strip().replace('"', "").replace("'", "")
if line.strip().startswith("__author__"):
author = line.split("=")[1].strip().replace('"', "").replace("'", "")

with open("README.md", encoding="utf-8") as f:
long_description = f.read()

setup(
name="pydatrie",
version=version,
author=author,
author_email="[email protected]",
url="https://github.com/hyunwoongko/pydatrie",
license="Apache 2.0 License",
description="Pure Python implementation of DARTS (Double ARray Trie System)",
long_description_content_type="text/markdown",
platforms=["any"],
long_description=long_description,
packages=find_packages(exclude=["tests"]),
python_requires=">=3",
zip_safe=False,
include_package_data=True,
)

0 comments on commit 8d699e7

Please sign in to comment.