-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
80 lines (62 loc) · 2.2 KB
/
Copy pathsetup.py
File metadata and controls
80 lines (62 loc) · 2.2 KB
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
import pathlib
import re
import setuptools
_here = pathlib.Path(__file__).resolve().parent
name = "texflash"
alias = "texflash"
# for simplicity we actually store the version in the __version__ attribute in the source
with open(_here / name / "__init__.py") as f:
meta_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
if meta_match:
version = meta_match.group(1)
else:
raise RuntimeError("Unable to find __version__ string.")
author = "Luc Vedrenne"
author_email = "vedrenneluc@gmail.com"
description = "A webapp to parse flash cards from .tex file and learn them."
with open(_here / "README.md", "r") as f:
readme = f.read()
url = f"https://github.com/ListIndexOutOfRange/{name}"
license = "Apache-2.0"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Programming Language :: Python :: 3",
]
python_requires = "~=3.8"
install_requires = [
"numpy>=1.19.0",
"streamlit>=1.13.0"
]
setuptools.setup(
name=alias,
version=version,
author=author,
author_email=author_email,
maintainer=author,
maintainer_email=author_email,
description=description,
long_description=readme,
long_description_content_type="text/markdown",
url=url,
license=license,
classifiers=classifiers,
zip_safe=False,
python_requires=python_requires,
install_requires=install_requires,
packages=setuptools.find_packages(exclude=["examples", "data"]),
entry_points={"console_scripts": ['texflash=texflash.cli:main']},
)
# _______________________________________________________________________________________________ #
# Using this script:
# >>> python setup.py sdist bdist_wheel
# Resulting package should be inspected, checked, and tested with:
# > twine check dist/*
# > twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# Then finally if everything is ok:
# twine upload dist/*
# _______________________________________________________________________________________________ #