This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
54 lines (43 loc) · 1.57 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
import os
from subprocess import call
from setuptools import find_packages, setup
from setuptools.command.build_py import build_py
from setuptools.command.sdist import sdist
with open(
os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md"), encoding="utf-8"
) as f:
long_description = f.read()
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
class MyBuildCommand(build_py):
def run(self):
call(["npm", "install", "--prefix", "fhir2dataset/tools/metadata"])
build_py.run(self)
class MySdistCommand(sdist):
def run(self):
call(["npm", "install", "--prefix", "fhir2dataset/tools/metadata"])
sdist.run(self)
requirements = read("requirements.txt").split()
setup(
cmdclass={"build_py": MyBuildCommand, "sdist": MySdistCommand},
name="fhir2dataset",
packages=find_packages(),
include_package_data=True,
version="0.1.6",
license="Apache License 2.0",
description="Transform FHIR to Dataset",
long_description=long_description,
long_description_content_type="text/markdown",
author="Lucile Saulnier",
author_email="[email protected]",
url="https://github.com/arkhn/FHIR2Dataset",
keywords=["arkhn", "medical", "fhir", "FHIR", "Dataset", "API"],
install_requires=requirements,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)