-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (45 loc) · 1.36 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
import os
from setuptools import setup
# Pass package modules files.
# From https://stackoverflow.com/a/36693250/1956471
def package_files(directory):
paths = []
for path, directories, filenames in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
readme_markdown = None
with open("README.md") as f:
readme_markdown = f.read()
setup(
name="tqwgp-parser",
version="0.6.7",
url="https://github.com/YtoTech/talk-quote-work-getpaid-parser",
license="AGPL-3.0",
author="Yoan Tournade",
author_email="[email protected]",
description="A library for parsing Talk Quote Work Get-Paid (TQWGP) text-based compliant sales and accounting documents.",
long_description=readme_markdown,
long_description_content_type="text/markdown",
# TODO console_scripts?
# https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html
scripts=["scripts/tqwgp"],
packages=["tqwgp_parser"],
include_package_data=True,
package_data={
# "tqwgp_parser": ["*.hy"],
"tqwgp_parser": package_files("tqwgp_parser"),
},
zip_safe=False,
platforms="any",
install_requires=[
"hy>=0.26.0",
"toolz",
# "hyrule",
"pendulum",
"toml",
"pyyaml",
"click",
"babel",
],
)