-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·56 lines (52 loc) · 1.9 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
#! /usr/bin/env python
#
# Notes:
# - This not used: see pyproject.toml instead.
# - Simple installer for subset of scripts under Github
# https://github.com/tomasohara/misc-utility
# - Based on following:
# https://stackoverflow.com/questions/1471994/what-is-setup-py
# https://stackoverflow.com/questions/26528178/right-way-to-set-python-package-with-sub-packages
#
# TODO1:
# - Fix all the 'BAD' items below
# - Also fix keys flagged unknown:
# $ echo $(python setup.py --help 2>&1 | extract_matches.perl "Unknown distribution option: '(\S+)'")
# module description_file dist_name email python_requires home_page
#
"""Simple installer"""
from distutils.core import setup
setup(name='Mezcla',
packages=['mezcla', 'mezcla.tfidf'],
module="mezcla",
## TODO2: import mezcla; version=mezcla.VERSION
version="1.4.0.3",
## BAD: description-file="README.txt",
description_file="README.txt",
## BAD: dist-name="Mezcla",
dist_name="Mezcla",
author="Tom O'Hara",
# TODO3: find out which email key is preferred
email="[email protected]",
## BAD: author-email="[email protected]"
author_email="[email protected]",
## BAD: requires-python=">=3.8",
python_requires=">=3.8",
## TODO4?:
## install_requires=["six"],
## BAD: home-page="https://github.com/tomasohara/Mezcla",
home_page="https://github.com/tomasohara/Mezcla",
classifiers=[
"License :: OSI Approved :: LGPLv3",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
],
description="""
Package with core modules from https://github.com/tomasohara/misc-utility
note: mezcla is Spanish for mixture.
""")
# TODO1: Muchas gracias a Bruno y Tana; <thanks in Tibet> to Aviyan
## BAD:
## NOTE: part of pyproject.toml
## [tool.flit.scripts]
## realpython = "mezcla.__main__:main"