Skip to content

Commit

Permalink
build: Include data files
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Apr 10, 2023
1 parent 2331fc0 commit 6ba1d7c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
12 changes: 9 additions & 3 deletions docker/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ RUN mkdir -p ~/.fonts/opentype && \
fc-cache -f

# Copy everything required to build xml2rfc
COPY requirements.txt setup.py README.md LICENSE Makefile configtest.py .
COPY requirements.txt setup.py setup.cfg pyproject.toml README.md LICENSE Makefile configtest.py .


# Install & update build tools
RUN pip3 install --upgrade \
pip \
setuptools \
wheel

# Install Python dependencies
RUN pip3 install -r requirements.txt \
Expand All @@ -57,11 +64,10 @@ RUN pip3 install -r requirements.txt \
dict2xml \
"pypdf>=3.2.1"


COPY xml2rfc ./xml2rfc

# Build xml2rfc & finalize
RUN make install && \
pip3 uninstall -y decorator dict2xml pypdf && \
rm setup.py Makefile configtest.py requirements.txt && \
rm -r xml2rfc build dist
rm -r xml2rfc build
7 changes: 6 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ classifiers =
Programming Language :: Python :: 3.11

[options]
packages = xml2rfc, xml2rfc/writers, xml2rfc/util, xml2rfc/uniscripts
packages = xml2rfc, xml2rfc/writers, xml2rfc/util, xml2rfc/uniscripts, xml2rfc/data, xml2rfc/templates
zip_safe = False
include_package_data = True
install_requires = file: requirements.txt

[options.package_data]
* =
data/*
templates/*

[options.entry_points]
console_scripts =
xml2rfc = xml2rfc.run:main
Expand Down

0 comments on commit 6ba1d7c

Please sign in to comment.