Skip to content

Commit

Permalink
Merge pull request #68 from ESSS/fix-license-file-packing
Browse files Browse the repository at this point in the history
Use licese_files parameter instead of data_files
  • Loading branch information
lvoliveira authored Nov 20, 2023
2 parents 4205782 + e123deb commit 2e34237
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ repos:
- id: black
args: [--safe, --quiet]
language_version: python3
additional_dependencies: [click==8.0.2]
- repo: https://github.com/asottile/blacken-docs
rev: v1.0.0
hooks:
Expand Down
16 changes: 16 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"


# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
15 changes: 3 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,12 @@

extras_require = {
"docs": ["sphinx >= 1.4", "sphinx_rtd_theme"],
"testing": [
"codecov",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-regressions",
"tox",
],
"testing": ["codecov", "pytest", "pytest-cov", "pytest-mock", "pytest-regressions", "tox"],
}

setup(
name="flask-restalchemy",
use_scm_version={
"git_describe_command": "git describe --dirty --tags --long --match v*"
},
use_scm_version={"git_describe_command": "git describe --dirty --tags --long --match v*"},
setup_requires=["setuptools_scm"],
packages=find_packages("src"),
package_dir={"": "src"},
Expand All @@ -35,7 +26,7 @@
author_email="foss@esss.co",
description="Flask extension to build REST APIs based on SQLAlchemy models ",
keywords="flask sqlalchemy orm",
data_files=[("", ["LICENSE"])],
license_files=('LICENSE',),
install_requires=install_requires,
extras_require=extras_require,
python_requires=">=3.6",
Expand Down

0 comments on commit 2e34237

Please sign in to comment.