mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
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:
parent
0eaa0f494c
commit
aea0db4ef6
4
.github/workflows/publish_release.yml
vendored
4
.github/workflows/publish_release.yml
vendored
@ -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
27
MANIFEST.in
Normal 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]
|
||||
@ -1,3 +1,7 @@
|
||||
[build-system]
|
||||
requires = ["setuptools", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.black]
|
||||
line-length = 99
|
||||
target-version = ['py38']
|
||||
|
||||
15
setup.cfg
15
setup.cfg
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user