-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
53 lines (42 loc) · 1.39 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
41
42
43
44
45
46
47
48
49
50
51
52
53
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
from subprocess import check_call
with open("README.md", "r") as fh:
long_description = fh.read()
with open("./requirements.txt", "r") as f:
requirements = []
for line in f:
requirements.append(line.strip())
class PostDevelopCommand(develop):
"""Pos-installation for development mode."""
def run(self):
develop.run(self)
class PostInstallCommand(install):
"""Pos-installation for installation mode."""
def run(self):
check_call("python3 -m spacy download pt_core_news_sm".split())
install.run(self)
keywords = "geoparsing topic modeling locations text issues problems urbans"
setup(
name="PyElit",
version="0.2.0",
author="Rich Ramalho",
author_email="[email protected]",
description="Extraction of Locations and Issues of a Text",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
install_requires=requirements,
include_package_data=True,
url="https://github.com/Rickecr/PyElit",
project_urls={
"Código fonte": "https://github.com/Rickecr/PyElit",
},
keywords=keywords,
license="MIT",
cmdclass={
"develop": PostDevelopCommand,
"install": PostInstallCommand,
},
)