13c974ed35 
								
									
								
							
								 
							
						 
						
							
							
								
								Drop Bionic from Debian builds  ( #11633 )  
							
							... 
							
							
							
							* update Trove classifiers to remove py36
* stop building bionic
* update dh-virtualenv
* newsfragment
* fix newsfragment
* update version refs
* another try at correct tag
* Update changelog 
							
						 
						
							2022-01-03 11:17:16 -08:00  
				
					
						
							
							
								 
						
							
							
								fcfe67578f 
								
									
								
							
								 
							
						 
						
							
							
								
								Update to the current version of Black and run it on Synapse codebase ( #11596 )  
							
							... 
							
							
							
							* update black version
* run updated version of black on code
* newsfragment
* enumerate python versions 
							
						 
						
							2021-12-23 20:22:15 -08:00  
				
					
						
							
							
								 
						
							
							
								7a7ca8f226 
								
									
								
							
								 
							
						 
						
							
							
								
								Use mock from standard library ( #11588 )  
							
							... 
							
							
							
							Instead of the backported version. 
							
						 
						
							2021-12-20 10:34:46 -05:00  
				
					
						
							
							
								 
						
							
							
								8ad39438fa 
								
									
								
							
								 
							
						 
						
							
							
								
								Add opentracing types ( #11603 )  
							
							
							
						 
						
							2021-12-20 12:18:09 +00:00  
				
					
						
							
							
								 
						
							
							
								42bf020463 
								
									
								
							
								 
							
						 
						
							
							
								
								Expose worker & homeserver as entrypoints in `setup.py` ( #11449 )  
							
							... 
							
							
							
							Co-authored-by: reivilibre <oliverw@matrix.org> 
							
						 
						
							2021-11-30 16:52:45 +00:00  
				
					
						
							
							
								 
						
							
							
								d08ef6f155 
								
									
								
							
								 
							
						 
						
							
							
								
								Make background updates controllable via a plugin ( #11306 )  
							
							... 
							
							
							
							Co-authored-by: Brendan Abolivier <babolivier@matrix.org> 
							
						 
						
							2021-11-29 17:57:06 +01:00  
				
					
						
							
							
								 
						
							
							
								66c4b774fd 
								
									
								
							
								 
							
						 
						
							
							
								
								Add type hints to synapse._scripts ( #11297 )  
							
							
							
						 
						
							2021-11-10 17:55:32 +00:00  
				
					
						
							
							
								 
						
							
							
								3b951445a7 
								
									
								
							
								 
							
						 
						
							
							
								
								Require mypy for synapse/ & tests/ unless excluded ( #11282 )  
							
							... 
							
							
							
							Signed-off-by: Dan Callahan <danc@element.io> 
							
						 
						
							2021-11-09 16:22:47 +00:00  
				
					
						
							
							
								 
						
							
							
								bcc115c28d 
								
									
								
							
								 
							
						 
						
							
							
								
								Add twine and towncrier as dev dependencies ( #11233 )  
							
							... 
							
							
							
							We don't pin them as we execute them as commands, rather than use them
as libs. 
							
						 
						
							2021-11-03 11:10:25 +00:00  
				
					
						
							
							
								 
						
							
							
								5e29d417fc 
								
									
								
							
								 
							
						 
						
							
							
								
								Include the requirements for [mypy,lint] in [dev] ( #11034 )  
							
							
							
						 
						
							2021-10-11 16:34:31 +01:00  
				
					
						
							
							
								 
						
							
							
								593eeac19e 
								
							
								 
							
						 
						
							
							
								
								Revert accidental push to develop.  
							
							
							
						 
						
							2021-10-08 17:17:22 +01:00  
				
					
						
							
							
								 
						
							
							
								c576598a68 
								
							
								 
							
						 
						
							
							
								
								Include the requirements for [mypy,lint] in [dev]  
							
							
							
						 
						
							2021-10-08 17:11:14 +01:00  
				
					
						
							
							
								 
						
							
							
								797ee7812d 
								
									
								
							
								 
							
						 
						
							
							
								
								Relax `ignore-missing-imports` for modules that have stubs now and update mypy ( #11006 )  
							
							... 
							
							
							
							Updating mypy past version 0.9 means that third-party stubs are no-longer distributed with typeshed. See http://mypy-lang.blogspot.com/2021/06/mypy-0900-released.html  for details.
We therefore pull in stub packages in setup.py
Additionally, some modules that we were previously ignoring import failures for now have stubs. So let's use them.
The rest of this change consists of fixups to make the newer mypy + stubs pass CI.
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> 
							
						 
						
							2021-10-08 14:49:41 +01:00  
				
					
						
							
							
								 
						
							
							
								a7bacccd85 
								
									
								
							
								 
							
						 
						
							
							
								
								Extend the release script to tag and create the releases. ( #10496 )  
							
							
							
						 
						
							2021-08-03 10:23:45 +00:00  
				
					
						
							
							
								 
						
							
							
								8070b893db 
								
									
								
							
								 
							
						 
						
							
							
								
								update black to 21.6b0 ( #10197 )  
							
							... 
							
							
							
							Reformat all files with the new version.
Signed-off-by: Marcus Hoffmann <bubu@bubu1.eu> 
							
						 
						
							2021-06-17 15:20:06 +01:00  
				
					
						
							
							
								 
						
							
							
								c1dbe84c3d 
								
									
								
							
								 
							
						 
						
							
							
								
								Add release helper script ( #9713 )  
							
							... 
							
							
							
							Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> 
							
						 
						
							2021-04-13 11:51:10 +01:00  
				
					
						
							
							
								 
						
							
							
								a7044e5c0f 
								
									
								
							
								 
							
						 
						
							
							
								
								Drop Python 3.5 from Trove classifier metadata. ( #9782 )  
							
							... 
							
							
							
							* Drop Python 3.5 from Trove classifier metadata.
Signed-off-by: Dan Callahan <danc@element.io> 
							
						 
						
							2021-04-12 16:00:28 +01:00  
				
					
						
							
							
								 
						
							
							
								0b3112123d 
								
									
								
							
								 
							
						 
						
							
							
								
								Use mock from the stdlib. ( #9772 )  
							
							
							
						 
						
							2021-04-09 13:44:38 -04:00  
				
					
						
							
							
								 
						
							
							
								abade34633 
								
							
								 
							
						 
						
							
							
								
								Require py36 and Postgres 9.6  
							
							
							
						 
						
							2021-04-08 16:42:32 +01:00  
				
					
						
							
							
								 
						
							
							
								4609e58970 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix version for bugbear ( #9734 )  
							
							
							
						 
						
							2021-04-02 11:22:21 +01:00  
				
					
						
							
							
								 
						
							
							
								83de0be4b0 
								
									
								
							
								 
							
						 
						
							
							
								
								Bump mypy-zope to 0.2.13. ( #9678 )  
							
							... 
							
							
							
							This fixes an error ("Cannot determine consistent method resolution order (MRO)")
when running mypy with a cache. 
							
						 
						
							2021-03-24 07:35:43 -04:00  
				
					
						
							
							
								 
						
							
							
								27d2820c33 
								
									
								
							
								 
							
						 
						
							
							
								
								Enable flake8-bugbear, but disable most checks. ( #9499 )  
							
							... 
							
							
							
							* Adds B00 to ignored checks.
* Fixes remaining issues. 
							
						 
						
							2021-03-16 14:19:27 -04:00  
				
					
						
							
							
								 
						
							
							
								0c330423bc 
								
									
								
							
								 
							
						 
						
							
							
								
								Bump the mypy and mypy-zope versions. ( #9529 )  
							
							
							
						 
						
							2021-03-03 07:19:19 -05:00  
				
					
						
							
							
								 
						
							
							
								0a00b7ff14 
								
									
								
							
								 
							
						 
						
							
							
								
								Update black, and run auto formatting over the codebase ( #9381 )  
							
							... 
							
							
							
							- Update black version to the latest
 - Run black auto formatting over the codebase
    - Run autoformatting according to [`docs/code_style.md
`](80d6dc9783/docs/code_style.md 
							
						 
						
							2021-02-16 22:32:34 +00:00  
				
					
						
							
							
								 
						
							
							
								e74bb96733 
								
									
								
							
								 
							
						 
						
							
							
								
								Update isort to v5.7.0 ( #9222 )  
							
							... 
							
							
							
							This new version no longer has the problem of adding/removing a blank line in `.pyi` files, which black disagrees with. This would cause `isort` to slightly modify `.pyi` files, before `black` would subsequently modify back directly afterwards.
Relevant `isort` issue: https://github.com/pycqa/isort/issues/1284  
							
						 
						
							2021-01-26 11:36:12 +00:00  
				
					
						
							
							
								 
						
							
							
								1fa15b74e0 
								
									
								
							
								 
							
						 
						
							
							
								
								Specify that the long description is rST in the package metadata. ( #9180 )  
							
							... 
							
							
							
							This avoids a warning when uploading packages to PyPI via twine. 
							
						 
						
							2021-01-20 16:00:59 -05:00  
				
					
						
							
							
								 
						
							
							
								88e1d0c52b 
								
									
								
							
								 
							
						 
						
							
							
								
								Note support for Python 3.9 ( #8665 )  
							
							... 
							
							
							
							As expected, all tests pass locally without modification.
Signed-off-by: Dan Callahan <danc@element.io> 
							
						 
						
							2020-10-27 23:24:33 +00:00  
				
					
						
							
							
								 
						
							
							
								654cc9470e 
								
									
								
							
								 
							
						 
						
							
							
								
								Pin mypy-zope for compatibility with mypy. ( #8600 )  
							
							
							
						 
						
							2020-10-21 06:45:01 -04:00  
				
					
						
							
							
								 
						
							
							
								84c0e46cce 
								
									
								
							
								 
							
						 
						
							
							
								
								Update mypy to 0.790, and move dependencies to extras ( #8583 )  
							
							
							
						 
						
							2020-10-20 07:55:21 -04:00  
				
					
						
							
							
								 
						
							
							
								654e239b25 
								
									
								
							
								 
							
						 
						
							
							
								
								Add option to scripts-dev/lint.sh to only lint files changed since the last git commit ( #8472 )  
							
							... 
							
							
							
							This PR makes several changes to the `./scripts-dev/lint.sh` script, which lints the codebase with a number of tools:
* Adds usage information, with `-h` flag to show it. Otherwise it will show when providing an unknown flag.
* Adds option `-d` which will check both staged and unstaged files that have changed since the last commit and add them to the list of files to lint.
  - Note that only files without an extension, or with a `.py` extension will be allowed. This prevents editing bash scripts causing the linters to break on non-python files.
* Improves the print-out of which files/directories are being linted. 
							
						 
						
							2020-10-15 15:45:13 +01:00  
				
					
						
							
							
								 
						
							
							
								bbde4038df 
								
									
								
							
								 
							
						 
						
							
							
								
								Do not check lint/test dependencies at runtime. ( #8377 )  
							
							... 
							
							
							
							moves non-runtime dependencies out of synapse.python_dependencies (test and lint) 
							
						 
						
							2020-09-23 11:45:37 +01:00  
				
					
						
							
							
								 
						
							
							
								25e2d193e3 
								
									
								
							
								 
							
						 
						
							
							
								
								Advertise Python 3.8 support in setup.py ( #7602 )  
							
							... 
							
							
							
							Synapse supports Python 3.8. We've been using it in CI for a while now. 
							
						 
						
							2020-06-01 19:45:01 +01:00  
				
					
						
							
							
								 
						
							
							
								32e7c9e7f2 
								
									
								
							
								 
							
						 
						
							
							
								
								Run Black. ( #5482 )  
							
							
							
						 
						
							2019-06-20 19:32:02 +10:00  
				
					
						
							
							
								 
						
							
							
								09e9a26b71 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove Python 2.7 support. ( #5425 )  
							
							... 
							
							
							
							* remove 2.7 from CI and publishing
* fill out classifiers and also make it not be installed on 3.5
* some minor bumps so that the old deps work on python 3.5 
							
						 
						
							2019-06-12 21:31:59 +10:00  
				
					
						
							
							
								 
						
							
							
								a137f4eac0 
								
							
								 
							
						 
						
							
							
								
								Add systemd-python to optional dependencies ( #4339 )  
							
							... 
							
							
							
							Using systemd-python allows for logging to the systemd journal,
as is documented in: `synapse/contrib/systemd/log_config.yaml`.
Signed-off-by: Silke Hofstra <silke@slxh.eu> 
							
						 
						
							2019-04-16 20:41:17 +10:00  
				
					
						
							
							
								 
						
							
							
								c26f49a664 
								
									
								
							
								 
							
						 
						
							
							
								
								Make the dependencies more like a standard Python project and hook up the optional dependencies to setuptools ( #4298 )  
							
							
							
						 
						
							2018-12-22 01:37:26 +11:00  
				
					
						
							
							
								 
						
							
							
								058934b1cf 
								
							
								 
							
						 
						
							
							
								
								uh, Matrix is called Matrix these days...  
							
							
							
						 
						
							2018-10-21 12:18:30 +01:00  
				
					
						
							
							
								 
						
							
							
								e721a7f2c1 
								
							
								 
							
						 
						
							
							
								
								Implement a null 'test' command  
							
							
							
						 
						
							2016-12-09 18:00:58 +00:00  
				
					
						
							
							
								 
						
							
							
								af32d3b773 
								
							
								 
							
						 
						
							
							
								
								Don't try to run tox from setup.py  
							
							... 
							
							
							
							Using tox to run the tests is a bad idea, as per the comments. 
							
						 
						
							2016-12-09 17:16:31 +00:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								73e4ad4b8b 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' into develop  
							
							... 
							
							
							
							Conflicts:
	setup.py 
							
						 
						
							2015-09-07 15:06:46 +01:00  
				
					
						
							
							
								 
						
							
							
								227b77409f 
								
							
								 
							
						 
						
							
							
								
								DEPENDENCY_LINKS was turned to a list  
							
							
							
						 
						
							2015-09-04 08:56:23 +01:00  
				
					
						
							
							
								 
						
							
							
								06094591c5 
								
							
								 
							
						 
						
							
							
								
								Pass an empty list of arguments to tox if no arguments are given  
							
							
							
						 
						
							2015-08-26 13:13:01 +01:00  
				
					
						
							
							
								 
						
							
							
								fd246fde89 
								
							
								 
							
						 
						
							
							
								
								Install tox locally if it wasn't already installed when running setup.py test  
							
							
							
						 
						
							2015-08-26 12:59:02 +01:00  
				
					
						
							
							
								 
						
							
							
								4f6fa981ec 
								
							
								 
							
						 
						
							
							
								
								Make 'setup.py test' run tox  
							
							
							
						 
						
							2015-08-26 12:45:29 +01:00  
				
					
						
							
							
								 
						
							
							
								2e31dd2ad3 
								
							
								 
							
						 
						
							
							
								
								Add tox.ini file for synapse  
							
							
							
						 
						
							2015-08-25 14:14:02 +01:00  
				
					
						
							
							
								 
						
							
							
								21ac8be5f7 
								
							
								 
							
						 
						
							
							
								
								Depend on Twisted>=15.1 rather than pining to a particular version  
							
							
							
						 
						
							2015-08-12 17:25:13 +01:00  
				
					
						
							
							
								 
						
							
							
								66da8f60d0 
								
							
								 
							
						 
						
							
							
								
								Bump the version of twisted needed for setup_requires to 15.2.1  
							
							
							
						 
						
							2015-06-15 16:27:20 +01:00  
				
					
						
							
							
								 
						
							
							
								119e5d7702 
								
							
								 
							
						 
						
							
							
								
								Seperate scripts/ into scripts/ and scripts-dev/, where scripts/* are automatically added to the package  
							
							
							
						 
						
							2015-05-06 11:41:19 +01:00  
				
					
						
							
							
								 
						
							
							
								64cf1483e5 
								
							
								 
							
						 
						
							
							
								
								D'oh - setup.py used the dict directly: make it use the wrapper function.  
							
							
							
						 
						
							2015-03-19 11:21:34 +00:00