Skip to content

Commit 9c1ea4f

Browse files
authored
Merge pull request #33 from OpenDebates/public-release
Public Major Release
2 parents 17a797a + b702781 commit 9c1ea4f

File tree

6 files changed

+122
-4
lines changed

6 files changed

+122
-4
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.2.0-beta.0
2+
current_version = 1.0.0
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)\.(?P<build>\d+))?

CHANGELOG.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
All notable changes to this openskill.py will be documented in this file.
2+
3+
This file is updated every release since v1.0.0 with the use of towncrier from the fragments found under changes/
4+
5+
.. towncrier release notes start
6+
7+
Openskill 1.0.0 (2022-02-04)
8+
============================
9+
10+
Features
11+
--------
12+
13+
- Capability to predict winners of match given a set of teams. (`#27 <https://github.com/OpenDebates/openskill.py/issues/27>`_)

docs/contributing.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,33 @@ All pull requests to the python source must follow `PEP 8 <https://www.python.or
1111
All methods and functions must be in snake_case and not camelCase. All code must also be formatted with ``black`` and it's default settings.
1212

1313

14+
Towncrier
15+
---------
16+
17+
To aid with the generation of ``CHANGELOG.rst`` as well as the releases changelog we use towncrier.
18+
19+
You will need to install towncrier and openskill.py from source before making changelog additions.
20+
21+
.. code::
22+
23+
poetry install
24+
25+
For every pull request made to this project, there should be a short explanation of the change under changes/ with the following format: ``{pull_request_number}.{type}.rst``,
26+
27+
Possible types are:
28+
29+
- breaking: Signifying a backwards incompatible change.
30+
- feature: Signifying a new feature.
31+
- bugfix: Signifying a bugfix.
32+
- doc: Signifying a documentation improvement.
33+
- deprecation: Signifying a deprecation or removal of public API.
34+
35+
For changes that do not fall under any of the above cases, please specify the lack of the changelog in the pull request description so that a maintainer can skip the job that checks for newly added fragments.
36+
37+
Best way to create the fragments is to run towncrier create ``{pull_request_number}.{type}.rst`` after creating the pull request, edit the created file and committing the changes.
38+
39+
Multiple fragment types can be created per pull request if it covers multiple areas.
40+
1441
Pull Requests
1542
-------------
1643

openskill/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from openskill.rate import rate, Rating, create_rating, team_rating, predict_win
33

44

5-
__version__ = "0.2.0-beta.0"
5+
__version__ = "1.0.0"

poetry.lock

Lines changed: 64 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openskill"
3-
version = "0.2.0-beta.0"
3+
version = "1.0.0"
44
description = "Python implementation of Weng-Lin Bayesian ranking, a better, license-free alternative to TrueSkill."
55
authors = ["Taven <taven@outlook.in>"]
66
license = "MIT"
@@ -56,10 +56,25 @@ furo = "^2022.1.2"
5656
jsonlines = "^3.0.0"
5757
prompt-toolkit = "^3.0.26"
5858
trueskill = "^0.4.5"
59+
towncrier = "^21.3.0"
5960

6061
[tool.poetry.extras]
6162
docs = ["sphinx", "furo"]
6263

64+
[tool.towncrier]
65+
package = "openskill"
66+
package_dir = "openskill"
67+
directory = "changes"
68+
filename = "CHANGELOG.rst"
69+
issue_format = "`#{issue} <https://github.com/OpenDebates/openskill.py/issues/{issue}>`_"
70+
type = [
71+
{ name = "Breaking Changes", directory = "breaking", showcontent = true },
72+
{ name = "Deprecation", directory = "deprecation", showcontent = true },
73+
{ name = "Features", directory = "feature", showcontent = true },
74+
{ name = "Bugfixes", directory = "bugfix", showcontent = true },
75+
{ name = "Documentation Improvements", directory = "doc", showcontent = true },
76+
]
77+
6378
[tool.pytest.ini_options]
6479
minversion = "6.0"
6580
addopts = "-ra --strict-markers --ignore=docs/conf.py --ignore=setup.py --ignore=benchmark/benchmark.py --ignore=ci --ignore=.eggs --doctest-modules --doctest-glob=/*.rst --tb=short"

0 commit comments

Comments
 (0)