Include more files in distributions (#4964)

* Include LICENSE files in distributions

* Use pep517 isolated builds

* Update the GH Actions workflow
This commit is contained in:
jack1142 2021-04-08 02:35:47 +02:00 committed by GitHub
parent 0eaa0f494c
commit aea0db4ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 13 deletions

View File

@ -19,13 +19,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install build twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_token }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
pr_dev_bump:

27
MANIFEST.in Normal file
View File

@ -0,0 +1,27 @@
# include license files
include LICENSE
recursive-include redbot *.LICENSE
# include locale files
recursive-include redbot locales/*.po
# include data folders for cogs
recursive-include redbot/**/data *
# include *.export files from the test fixtures
recursive-include redbot *.export
# include the py.typed file informing about Red being typed
recursive-include redbot py.typed
# include *.sql files from postgres driver
recursive-include redbot/core/drivers/postgres *.sql
# include tests
graft tests
# include tox configuration
include tox.ini
# exclude files containing byte-code and compiled libs
global-exclude *.py[cod]

View File

@ -1,3 +1,7 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 99
target-version = ['py38']

View File

@ -27,10 +27,14 @@ classifiers =
Operating System :: POSIX :: Linux
Programming Language :: Python :: 3.8
Topic :: Communications :: Chat
license_files =
LICENSE
redbot/**/*.LICENSE
[options]
packages = find_namespace:
python_requires = >=3.8.1,<3.9
include_package_data = True
install_requires =
aiohttp==3.7.3
aiohttp-json-rpc==0.13.3
@ -134,14 +138,3 @@ pytest11 =
include =
redbot
redbot.*
[options.package_data]
* =
locales/*.po
**/locales/*.po
data/*
data/**/*
*.export
py.typed
redbot.core.drivers.postgres =
*.sql