-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (59 loc) · 2.06 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
"""Setup package"""
import os
import re
import subprocess
import sys
from setuptools import setup, find_namespace_packages
from setuptools.command.build_ext import build_ext as _build_ext
# Packages to include in the distribution
packages = find_namespace_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "extras"])
# Additional data required to install this package
package_data = {
'tarot_fortune': [
os.path.join('resources', 'cards', '*', '*'),
os.path.join('resources', 'text', '*', '*')
]
}
# List of dependencies minimally needed by this project to run
with open('requirements.in') as f:
install_requires = [x for x in f.read().splitlines() if not x.startswith(('--', '#'))]
# Trove classifiers
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: PyPy'
]
# Keywords to help users find this package on PyPi
keywords = ['tarot', 'fortune', 'rider']
here = os.path.abspath(os.path.dirname(__file__))
meta = {}
readme = ''
# Read version and README files
with open(os.path.join(here, 'tarot_fortune', '_meta.py'), 'r') as f:
exec(f.read(), meta)
with open(os.path.join(here, 'README.md'), 'r') as f:
readme = f.read()
setup(
name=meta['__title__'],
version=meta['__version__'],
description=meta['__description__'],
long_description=readme,
long_description_content_type='text/markdown',
url=meta['__url__'],
author=meta['__author__'],
author_email=meta['__email__'],
license=meta['__license__'],
classifiers=classifiers,
keywords=keywords,
platforms=['any'],
packages=packages,
install_requires=install_requires,
package_data=package_data,
include_package_data=True,
python_requires=">=3.6.*, <4",
download_url='https://github.com/vgonisanz/tarot-fortune/archive/refs/tags/v0.2.0.tar.gz' # TODO
)