Skip to content

Commit

Permalink
Change versioning and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanforbes committed Mar 20, 2021
1 parent 612aa3a commit 86144d2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create Release
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+

jobs:
Release:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ poetry run pre-commit install --hook-type pre-commit --hook-type post-checkout

## Version numbering scheme

At this time, the version number of `discord.py-stubs` will follow the version number of `discord.py` it corresponds to and append one more version segment that indicates the sequence of releases for the stubs. For instance, if you are using `discord.py` version `1.3.4`, you would use `discord.py-stubs` version `1.3.4.X` where `X` is an integer.
The **major** and **minor** version numbers of `discord.py-stubs` will match the **major** and **minor** version numbers of the `discord.py` release the stubs represent. For instance, if you are using `discord.py` version `1.6.4`, you would use `discord.py-stubs` version `1.6.X` where `X` is the latest **patch** version of the stubs. Using semver dependency specifications, `discord.py-stubs` version `~1.6` is designed to work with `discord.py` version `~1.6`.

In addition, `discord.py-stubs` will indicate which versions of the runtime library are compatible through its dependency information (as suggested in PEP-561).
20 changes: 10 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "discord.py-stubs"
version = "1.6.0.3dev0"
version = "1.6.1dev0"
description = "discord.py stubs"
homepage = "https://github.com/bryanforbes/discord.py-stubs"
authors = ["Bryan Forbes <bryan@reigndropsfall.net>"]
Expand All @@ -17,12 +17,12 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.6.1"
"discord.py" = "~1.6.0"
mypy = ">=0.782"
typing-extensions = "^3.7.4"

[tool.poetry.dev-dependencies]
black = "^20.8b1"
"discord.py" = "^1.6.0"
flake8 = "^3.8.4"
flake8-pyi = "^20.10.0"
isort = "^5.7.0"
Expand Down

0 comments on commit 86144d2

Please sign in to comment.