-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (57 loc) · 2.31 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
54
55
56
57
58
59
60
61
62
63
64
65
66
# -*- coding: utf-8 -*-
import os
from setuptools import setup
def fast_scandir(dirname):
subfolders = [f.path for f in os.scandir(dirname) if f.is_dir()]
for dirname in list(subfolders):
subfolders.extend(fast_scandir(dirname))
return subfolders
def package_data_dirs(root, data_dirs):
data_dirs_path = [x + "/*" for x in data_dirs]
for data_dir in data_dirs:
data_dirs_path += [
x.replace(f"{root}/", "") + "/*" for x in fast_scandir(f"{root}/{data_dir}")
]
return {root: data_dirs_path}
requirements = [
# config
"rds-core>=0.0.16",
]
with open("requirements.txt", "w") as file1:
for requirement in requirements:
file1.write(f"{requirement}\n")
setup(
name="rds-cep",
version="0.0.2",
description="Framework para serviços do Rede de Dados em Saúde do LAIS",
long_description="É uma biblioteca pública em Python que condensa um conjunto de boas práticas para o"
" desenvolvimento das aplicações que compõem a Rede da Dados em Saúde (RDS) RDS do Laboratório de"
" Inovação Tecnológica em Saúde (LAIS) e dos parceiros que contam com o LAIS para fazer suas próprias"
" RDS, a exemplo RDS-RN e RDS-ES.",
author="Kelson da Costa Medeiros",
author_email="[email protected]",
keywords=["rds", "cache", "config", "helper", "searchengine"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"Topic :: Software Development :: Libraries",
],
python_requires=">=3.8",
install_requires=requirements,
packages=[
"rds_cep",
],
package_dir={"rds_cep": "rds_cep"},
package_data=package_data_dirs("rds_cep", []),
download_url="https://github.com/lais-huol/rds-cep-python/tags",
url="https://github.com/lais-huol/rds-cep-python",
)