Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
b3064532
Unverified
Commit
b3064532
authored
6 years ago
by
Amber Brown
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Run our oldest supported configuration in CI (#3952)
parent
51d33d51
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+3
-0
3 additions, 0 deletions
.travis.yml
changelog.d/3952.misc
+1
-0
1 addition, 0 deletions
changelog.d/3952.misc
synapse/python_dependencies.py
+14
-13
14 additions, 13 deletions
synapse/python_dependencies.py
tox.ini
+20
-0
20 additions, 0 deletions
tox.ini
with
38 additions
and
13 deletions
.travis.yml
+
3
−
0
View file @
b3064532
...
...
@@ -20,6 +20,9 @@ matrix:
-
python
:
2.7
env
:
TOX_ENV=py27
-
python
:
2.7
env
:
TOX_ENV=py27-old
-
python
:
2.7
env
:
TOX_ENV=py27-postgres TRIAL_FLAGS="-j 4"
services
:
...
...
This diff is collapsed.
Click to expand it.
changelog.d/3952.misc
0 → 100644
+
1
−
0
View file @
b3064532
Run the test suite on the oldest supported versions of our dependencies in CI.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
synapse/python_dependencies.py
+
14
−
13
View file @
b3064532
...
...
@@ -33,31 +33,32 @@ logger = logging.getLogger(__name__)
# [2] https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-dependencies
REQUIREMENTS
=
{
"
jsonschema>=2.5.1
"
:
[
"
jsonschema>=2.5.1
"
],
"
frozendict>=
0.4
"
:
[
"
frozendict
"
],
"
frozendict>=
1
"
:
[
"
frozendict
"
],
"
unpaddedbase64>=1.1.0
"
:
[
"
unpaddedbase64>=1.1.0
"
],
"
canonicaljson>=1.1.3
"
:
[
"
canonicaljson>=1.1.3
"
],
"
signedjson>=1.0.0
"
:
[
"
signedjson>=1.0.0
"
],
"
pynacl>=1.2.1
"
:
[
"
nacl>=1.2.1
"
,
"
nacl.bindings
"
],
"
service_identity>=1.0.0
"
:
[
"
service_identity>=1.0.0
"
],
"
service_identity>=1
6
.0.0
"
:
[
"
service_identity>=1
6
.0.0
"
],
"
Twisted>=17.1.0
"
:
[
"
twisted>=17.1.0
"
],
"
treq>=15.1
"
:
[
"
treq>=15.1
"
],
# Twisted has required pyopenssl 16.0 since about Twisted 16.6.
"
pyopenssl>=16.0.0
"
:
[
"
OpenSSL>=16.0.0
"
],
"
pyyaml
"
:
[
"
yaml
"
],
"
pyasn1
"
:
[
"
pyasn1
"
],
"
daemonize
"
:
[
"
daemonize
"
],
"
bcrypt
"
:
[
"
bcrypt>=3.1.0
"
],
"
pillow
"
:
[
"
PIL
"
],
"
pydenticon
"
:
[
"
pydenticon
"
],
"
sortedcontainers
"
:
[
"
sortedcontainers
"
],
"
pysaml2>=3.0.0
"
:
[
"
saml2>=3.0.0
"
],
"
pymacaroons-pynacl
"
:
[
"
pymacaroons
"
],
"
pyyaml>=3.11
"
:
[
"
yaml
"
],
"
pyasn1>=0.1.9
"
:
[
"
pyasn1
"
],
"
pyasn1-modules>=0.0.7
"
:
[
"
pyasn1_modules
"
],
"
daemonize>=2.3.1
"
:
[
"
daemonize
"
],
"
bcrypt>=3.1.0
"
:
[
"
bcrypt>=3.1.0
"
],
"
pillow>=3.1.2
"
:
[
"
PIL
"
],
"
pydenticon>=0.2
"
:
[
"
pydenticon
"
],
"
sortedcontainers>=1.4.4
"
:
[
"
sortedcontainers
"
],
"
pysaml2>=3.0.0
"
:
[
"
saml2
"
],
"
pymacaroons-pynacl>=0.9.3
"
:
[
"
pymacaroons
"
],
"
msgpack-python>=0.3.0
"
:
[
"
msgpack
"
],
"
phonenumbers>=8.2.0
"
:
[
"
phonenumbers
"
],
"
six
"
:
[
"
six
"
],
"
prometheus_client
"
:
[
"
prometheus_client
"
],
"
six
>=1.10
"
:
[
"
six
"
],
"
prometheus_client
>=0.0.18
"
:
[
"
prometheus_client
"
],
# we use attr.s(slots), which arrived in 16.0.0
"
attrs>=16.0.0
"
:
[
"
attr>=16.0.0
"
],
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
20
−
0
View file @
b3064532
...
...
@@ -64,6 +64,26 @@ setenv =
{
[base]
setenv}
SYNAPSE_POSTGRES
=
1
# A test suite for the oldest supported versions of Python libraries, to catch
# any uses of APIs not available in them.
[testenv:py27-old]
skip_install
=
True
deps
=
# Old automat version for Twisted
Automat
=
= 0.3.0
mock
lxml
commands
=
/usr/bin/find
"{toxinidir}"
-name
'*.pyc'
-delete
# Make all greater-thans equals so we test the oldest version of our direct
# dependencies, but make the pyopenssl 17.0, which can work against an
# OpenSSL 1.1 compiled cryptography (as older ones don't compile on Travis).
/bin/sh
-c
'python
-m
synapse.python_dependencies
|
sed
-e
"s/>=/==/g"
-e
"s/
psycopg2
=
=2.6//" -e "s/pyopenssl==16.0.0/pyopenssl==17.0.0/" | xargs pip install'
# Install Synapse itself. This won't update any libraries.
pip
install
-e
.
{envbindir}/trial
{env:TRIAL_FLAGS:}
{posargs:tests}
{env:TOXSUFFIX:}
[testenv:py35]
usedevelop
=
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment