Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use licese_files parameter instead of data_files #68

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
ricardobz marked this conversation as resolved.
Show resolved Hide resolved
- 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="[email protected]",
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