-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
40 lines (33 loc) · 1.13 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import os
import sys
import setuptools
import truecase
base_dir = os.path.dirname(__file__)
src_dir = os.path.join(base_dir, "truecase")
sys.path.insert(0, src_dir)
def get_requirements(requirements_path: str = "requirements.txt"):
with open(requirements_path) as fp:
return [
x.strip() for x in fp.read().split("\n") if not x.startswith("#")
]
setuptools.setup(
name="truecase",
version=truecase.__version__,
author="Dalton Fury",
author_email="[email protected]",
description="A library to restore capitalization for text",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/daltonfury42/truecase",
packages=setuptools.find_packages(exclude=["tests"]),
setup_requires=["pytest-runner"],
tests_require=get_requirements("requirements.test.txt"),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
license='MIT',
install_requires=get_requirements(),
include_package_data=True,
)