Skip to content

Commit

Permalink
Fix setup.py rec include
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurV committed May 10, 2022
1 parent 589b91f commit 5ce2987
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 0.4.3

* Fix `setup.py` to include `tqwgp_parser.files` module files

# 0.4.2

* Missing `__init__.py` for module `tqwgp_parser.files`
* Missing `__init__.py` for module `tqwgp_parser.files` (wrong fix)

# 0.4.1

Expand Down
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
import sys
import re
import os
import ast
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.4.2",
version="0.4.3",
url="https://github.com/YtoTech/talk-quote-work-getpaid-parser",
license="AGPL-3.0",
author="Yoan Tournade",
Expand All @@ -24,6 +35,7 @@
include_package_data=True,
package_data={
"tqwgp_parser": ["*.hy"],
"tqwgp_parser": package_files("tqwgp_parser"),
},
zip_safe=False,
platforms="any",
Expand Down
Empty file removed tqwgp_parser/files/__init__.py
Empty file.

0 comments on commit 5ce2987

Please sign in to comment.