Commit Graph

35 Commits

Author SHA1 Message Date
Hynek Schlawack 9a58911ea7 Add black & isort to pre-commit
Use the default 88 columns from Black while allowing for 99 columns for longer (doc)strings.
2022-04-11 15:43:12 +02:00
Hynek Schlawack de70b1db1d Bootstrap pre-commit.ci
This adds no new code linters or formatters, but ensures that flake8 (and some
minor others) are run using pre-commit.ci on each PR.

That's very fast and fixes problems in-PR, not requiring review turnarounds.

Additionally we get more stable linters via version pinning for free. The
updates are capped to once per month to prevent unnecessary churn.

Since flake8 now runs over the whole code base, I've added a few noqas where it
made sense.
2022-04-11 07:13:40 +02:00
Hynek Schlawack fcf1745113 More cruft 2022-04-09 09:52:29 +02:00
Hynek Schlawack fd03aeb906 Drop Python versions that are unsupported by core team
Also fix combinatorial explosion of test envs in tox.ini.
2022-04-08 07:40:35 +02:00
Hynek Schlawack fd27fd5119 Get rid of setup.cfg 2022-04-07 16:12:40 +02:00
Thomas Grainger f72c7a72ad
Update setup.py 2021-07-07 20:26:33 +01:00
Thomas Grainger 8a661adc18
Update setup.py 2021-07-07 20:25:47 +01:00
Thomas Grainger 2e8986683e
use toml on py3.5- and tomli on py3.6+ 2021-07-07 20:25:09 +01:00
Thomas Grainger dbfb33ecf1
Revert "drop py2.7"
This reverts commit 71060f3aa1.
2021-07-07 20:20:43 +01:00
Thomas Grainger 462a20b349
Revert "Update setup.py"
This reverts commit 43ccc05bbe.
2021-07-07 20:20:33 +01:00
Thomas Grainger 43ccc05bbe
Update setup.py
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
2021-07-07 17:36:34 +01:00
Thomas Grainger 71060f3aa1
drop py2.7 2021-07-02 23:30:21 +01:00
Thomas Grainger 83b968d66a
swap toml with tomli 2021-07-02 23:21:36 +01:00
Miro Hrončok 3c8a92bba0
Explicitly require setuptools, towncrier/_settings.py imports pkg_resources (#333)
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2021-03-30 18:10:39 -04:00
Kyle Altendorf 3aac85b020
Add build-system to pyproject.toml for PEP 517 (-m build) (#323)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2021-03-15 11:54:55 -04:00
Kyle Altendorf 7f20910951
Release instructions (#317)
* preliminary release instructions

* Add helper script to canonicalize versions

* manifest

* Apply suggestions from code review

Co-authored-by: Adi Roiban <adiroiban@gmail.com>

* Apply suggestions from code review

* use dev0 between releases

* Apply suggestions from code review

Co-authored-by: Adi Roiban <adiroiban@gmail.com>
2021-02-04 21:03:26 -05:00
Kyle Altendorf 06f94d5780
Update metadata in setup.py (#295)
* Update metadata in setup.py

* Add 295.misc.rst
2020-12-18 22:10:45 -05:00
Amber Brown 3d01a194a6
Factor in #158 and clean up some configuration options (#162)
* ENH: Add no bullet point option

When `all_bullets` is set to false, then fragmets that should be
rendered as bullet points will have include the bullet itself.
In that case, bullets will be sorted to the front (bullets include
"*", "-", and "#." enumeration).
To make indentation of the ticket info easier, a `get_indent(text)`
function is exposed to the jinja template.

* testing and cleanups
2019-09-15 09:11:24 +10:00
Stephen Finucane 9751f4d890 Add subcommand support
Instead of having a single 'towncrier' command, add 'build' and 'check'
subcommands. The 'click-default-group' extension is used to allow us to
continue running the 'build' command by default, though we should look
at deprecating this in the future.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #144
2019-03-16 18:12:09 +00:00
Stephen Finucane 28ffbc0ba2 Move main command to 'build' module
For now, this simply lets us run the build command in the same way we
run the check command, namely:

    $ python -m towncrier.build

However, it will let us do far more powerful stuff shortly.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2019-03-16 16:59:41 +00:00
Stephen Finucane abc939589f Resolve trivial nits
Probably a result of black'ification and not running flake8 on
'setup.py'.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2019-03-16 13:28:15 +00:00
Jean-Paul Calderone f073574739 remove unused imports 2018-08-01 10:07:43 -04:00
Jean-Paul Calderone 8c412e4462 declare the supported versions of Python 2018-08-01 10:07:30 -04:00
Amber Brown ceb5178107 3.6 only and fixes 2018-06-12 23:22:56 +10:00
Amber Brown d0068ccec1 No python 3, because I want to use the new textwrap features 2018-06-12 23:20:47 +10:00
Amber Brown fcd87047b2 newsfile, drop 3.3 2017-12-28 17:38:37 +11:00
Hynek Schlawack 2fc2a0a216 Stop being a legacy owl 2017-08-21 12:54:41 +02:00
Amber Brown (HawkOwl) d5f3718b2f
the actual toml impl + some other fixes 2016-11-20 21:41:03 +11:00
Amber Brown (HawkOwl) 19a5f266d8 fix everything! 2016-03-29 12:11:11 +08:00
Amber Brown (HawkOwl) ef4df13b16 port it over 2016-03-29 11:47:08 +08:00
Amber Brown (HawkOwl) 7efed8a960 Port to Python 2.7. Fixes #27 2016-03-25 14:47:54 +08:00
Amber Brown (HawkOwl) f89aa32e81 add incremental to the deps, fixes #25 2016-03-25 14:30:43 +08:00
Low Kian Seong 25f4c2dfdf Adding description.
Adding description to `setup.py`
2015-12-29 21:07:26 +08:00
HawkOwl 0253c2fbb5 SCREW PYTHON 2, THIS IS THE FUTURE 2015-12-25 21:57:32 +08:00
HawkOwl 427b5cf05a some initial work 2015-12-25 21:23:23 +08:00