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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install setuptools wheel twine
|
pip install build twine
|
||||||
- name: Build and publish
|
- name: Build and publish
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.pypi_token }}
|
TWINE_PASSWORD: ${{ secrets.pypi_token }}
|
||||||
run: |
|
run: |
|
||||||
python setup.py sdist bdist_wheel
|
python -m build
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
|
|
||||||
pr_dev_bump:
|
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]
|
[tool.black]
|
||||||
line-length = 99
|
line-length = 99
|
||||||
target-version = ['py38']
|
target-version = ['py38']
|
||||||
|
|||||||
15
setup.cfg
15
setup.cfg
@ -27,10 +27,14 @@ classifiers =
|
|||||||
Operating System :: POSIX :: Linux
|
Operating System :: POSIX :: Linux
|
||||||
Programming Language :: Python :: 3.8
|
Programming Language :: Python :: 3.8
|
||||||
Topic :: Communications :: Chat
|
Topic :: Communications :: Chat
|
||||||
|
license_files =
|
||||||
|
LICENSE
|
||||||
|
redbot/**/*.LICENSE
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
packages = find_namespace:
|
packages = find_namespace:
|
||||||
python_requires = >=3.8.1,<3.9
|
python_requires = >=3.8.1,<3.9
|
||||||
|
include_package_data = True
|
||||||
install_requires =
|
install_requires =
|
||||||
aiohttp==3.7.3
|
aiohttp==3.7.3
|
||||||
aiohttp-json-rpc==0.13.3
|
aiohttp-json-rpc==0.13.3
|
||||||
@ -134,14 +138,3 @@ pytest11 =
|
|||||||
include =
|
include =
|
||||||
redbot
|
redbot
|
||||||
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