-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·67 lines (59 loc) · 1.79 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
67
#!/usr/bin/env python3
import re
from setuptools import setup
# Get the version from the main script
version = re.search(
'^__version__\s*=\s*"(.*)"',
open("switrs_to_sqlite/main.py").read(),
re.M,
).group(1)
# Try to import pypandoc to convert the readme, otherwise ignore it
try:
import pypandoc
long_description = pypandoc.convert_file("README.md", "rst")
except ImportError:
long_description = ""
# Configure the package
setup(
name="switrs-to-sqlite",
version=version,
description="Script for converting SWITRS reports to SQLite.",
long_description=long_description,
author="Alexander Gude",
author_email="alex.public.account@gmail.com",
url="https://github.com/agude/SWITRS-to-SQLite",
license="GPLv3+",
platforms=["any"],
packages=["switrs_to_sqlite"],
entry_points={
"console_scripts": [
"switrs_to_sqlite = switrs_to_sqlite.main:main"
],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
],
keywords=[
"switrs",
"sqlite",
"data",
],
setup_requires=[
"pypandoc",
"pytest-runner",
],
tests_require=["pytest"],
python_requires=">=3.8, <4",
)