-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
122 lines (93 loc) · 3.24 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#!/usr/bin/env python3
# coding: utf-8
# Copyright (c) Colav.
# Distributed under the terms of the Modified BSD License.
# -----------------------------------------------------------------------------
# Minimal Python version sanity check (from IPython)
# -----------------------------------------------------------------------------
# See https://stackoverflow.com/a/26737258/2268280
# sudo pip3 install twine
# python3 setup.py sdist bdist_wheel
# twine upload dist/*
# For test purposes
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*
from __future__ import print_function
from setuptools import setup, find_packages
import os
import sys
import codecs
v = sys.version_info
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
shell = False
if os.name in ('nt', 'dos'):
shell = True
warning = "WARNING: Windows is not officially supported"
print(warning, file=sys.stderr)
def main():
setup(
# Application name:
name="Chibchas",
# Version number (initial):
version="0.2.18-beta",
# Application author details:
author="Colav",
author_email="colav@udea.edu.co",
# Packages
packages=find_packages(exclude=['tests']),
python_requires=">=3.6",
# Include additional files into the package
include_package_data=True,
# Details
url="https://github.com/colav/Chibchas",
scripts=['bin/chibchas_server','bin/chibchas_institulac'],
#
license="BSD",
description="InstituLAC Automation Tools",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
# Dependent packages (distributions)
install_requires=[
'flask-wtf',
'wtforms',
'Flask-Bootstrap',
'html5lib',
'pandas',
'numpy',
'helium',
'xlsxwriter',
'lxml',
'bs4',
'xlrd',
'openpyxl'
],
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
)
if __name__ == "__main__":
main()