This repository contains the code for the Open Humans Website.
pip3 install virtualenv
)apt-get install libffi-dev
in Debian/Ubuntu or brew install libffi
in OSX)apt-get install libpq
in Debian/Ubuntu or brew install libpq
in OSX)apt-get install libpq-dev python3-dev
and
apt-get install postgresql postgresql-contrib
in Debian/Ubuntu)apt-get install memcached libmemcached-dev
or brew install memcached
)For the following commands, you'll also want to set up virtualenvwrapper:
- pip3 install virtualenvwrapper
- Follow setup instructions here (e.g. modify your .bashrc
as needed): http://virtualenvwrapper.readthedocs.io/en/latest/install.html
Create a virtualenv for Python 3.6, e.g.:
- mkvirtualenv open-humans --python=/usr/bin/python3.6
- pip3 install -r requirements.txt -r dev-requirements.txt
In the future, start the virtual environment with:
- workon open-humans
And update it after pulling updated code by repeating:
- pip3 install -r requirements.txt -r dev-requirements.txt
gulp
)npm install -g gulp
npm install
Update after pulling updated code by repeating:
- npm install
Running this site requires a PostgreSQL database (even for local development).
sudo su - postgres
createdb mydb
createuser -P jdoe
psql
GRANT ALL PRIVILEGES ON DATABASE mydb TO jdoe;
ALTER USER jdoe CREATEDB;
\q
exit
Use env.example
as a starting point. Copy this to .env
and modify with your
own settings.
Do this at the beginning, and update when pulling updated code by running:
./manage.py migrate
For additional setup information see docs/SETUP.md.
./manage.py runserver
You need to process static files before you can run tests.
./manage.py collectstatic
./manage.py test
Please use black
to format code prior to commits. Set up a
pre-commit hook by running the following:
pre-commit install
Bumps certifi from 2020.4.5.1 to 2022.12.7.
9e9e840
2022.12.07b81bdb2
2022.09.24939a28f
2022.09.14aca828a
2022.06.15.2de0eae1
Only use importlib.resources's new files() / Traversable API on Python ≥3.11 ...b8eb5e9
2022.06.15.147fb7ab
Fix deprecation warning on Python 3.11 (#199)b0b48e0
fixes #198 -- update link in license9d514b4
2022.06.154151e88
Add py.typed to MANIFEST.in to package in sdist (#196)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps django from 2.2.13 to 2.2.28.
5c33000
[2.2.x] Bumped version for 2.2.28 release.29a6c98
[2.2.x] Fixed CVE-2022-28347 -- Protected QuerySet.explain(**options) against...2c09e68
[2.2.x] Fixed CVE-2022-28346 -- Protected QuerySet.annotate(), aggregate(), a...8352b98
[2.2.x] Added stub release notes for 2.2.28.2801f29
[2.2.x] Reverted "Fixed forms_tests.tests.test_renderers with Jinja 3.1.0+."e03648f
[2.2.x] Fixed forms_tests.tests.test_renderers with Jinja 3.1.0+.9d13d8c
[2.2.x] Fixed typo in release notes.047ece3
[2.2.x] Added CVE-2022-22818 and CVE-2022-23833 to security archive.2427b2f
[2.2.x] Post-release version bump.e541f2d
[2.2.x] Bumped version for 2.2.27 release.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps ipython from 7.5.0 to 7.16.3.
d43c7c7
release 7.16.35fa1e40
Merge pull request from GHSA-pq7m-3gw7-gq5x8df8971
back to dev9f477b7
release 7.16.2138f266
bring back release helper from master branch5aa3634
Merge pull request #13341 from meeseeksmachine/auto-backport-of-pr-13335-on-7...bcae8e0
Backport PR #13335: What's new 7.16.28fcdcd3
Pin Jedi to <0.17.2.2486838
release 7.16.120bdc6f
fix conda buildDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps pillow from 7.1.1 to 8.3.2.
Sourced from pillow's releases.
8.3.2
https://pillow.readthedocs.io/en/stable/releasenotes/8.3.2.html
Security
CVE-2021-23437 Raise ValueError if color specifier is too long [hugovk, radarhere]
Fix 6-byte OOB read in FliDecode [wiredfool]
Python 3.10 wheels
Fixed regressions
Ensure TIFF
RowsPerStrip
is multiple of 8 for JPEG compression #5588 [kmilos, radarhere]Updates for
ImagePalette
channel order #5599 [radarhere]Hide FriBiDi shim symbols to avoid conflict with real FriBiDi library #5651 [nulano]
8.3.1
https://pillow.readthedocs.io/en/stable/releasenotes/8.3.1.html
Changes
- Catch OSError when checking if fp is sys.stdout #5585 [
@radarhere
]- Handle removing orientation from alternate types of EXIF data #5584 [
@radarhere
]- Make Image.array take optional dtype argument #5572 [
@t-vi
]8.3.0
https://pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html
Changes
- Use snprintf instead of sprintf #5567 [
@radarhere
]- Limit TIFF strip size when saving with LibTIFF #5514 [
@kmilos
]- Allow ICNS save on all operating systems #4526 [
@newpanjing
]- De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables #4989 [
@gofr
]- Do not use background or transparency index for new color #5564 [
@radarhere
]- Simplified code #5315 [
@radarhere
]- Replaced xml.etree.ElementTree #5565 [
@radarhere
]
... (truncated)
Sourced from pillow's changelog.
8.3.2 (2021-09-02)
CVE-2021-23437 Raise ValueError if color specifier is too long [hugovk, radarhere]
Fix 6-byte OOB read in FliDecode [wiredfool]
Add support for Python 3.10 #5569, #5570 [hugovk, radarhere]
Ensure TIFF
RowsPerStrip
is multiple of 8 for JPEG compression #5588 [kmilos, radarhere]Updates for
ImagePalette
channel order #5599 [radarhere]Hide FriBiDi shim symbols to avoid conflict with real FriBiDi library #5651 [nulano]
8.3.1 (2021-07-06)
Catch OSError when checking if fp is sys.stdout #5585 [radarhere]
Handle removing orientation from alternate types of EXIF data #5584 [radarhere]
Make Image.array take optional dtype argument #5572 [t-vi, radarhere]
8.3.0 (2021-07-01)
Use snprintf instead of sprintf. CVE-2021-34552 #5567 [radarhere]
Limit TIFF strip size when saving with LibTIFF #5514 [kmilos]
Allow ICNS save on all operating systems #4526 [baletu, radarhere, newpanjing, hugovk]
De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables #4989 [gofr, radarhere]
Replaced xml.etree.ElementTree #5565 [radarhere]
... (truncated)
8013f13
8.3.2 version bump23c7ca8
Update CHANGES.rst8450366
Update release notesa0afe89
Update test case9e08eb8
Raise ValueError if color specifier is too longbd5cf7d
FLI tests for Oss-fuzz crash.94a0cf1
Fix 6-byte OOB read in FliDecodecece64f
Add 8.3.2 (2021-09-02) [CI skip]e422386
Add release notes for Pillow 8.3.208dcbb8
Pillow 8.3.2 supports Python 3.10 [ci skip]Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Previously memberIDs could be created with 0 in the front. Various programs for data processing drop the 0, and then re-using the project memberIDs back in the command line would cause various errors in pulling or processing the data. Immense headaches have ensued for project administrators and data users. This attempts to remove the leading zeros (although it doesn't solve existing memberIDs with leading zeros) from future projectmemberID creation.
Have not tested but used OpenAI Codex to validate the sanity of this potential solution.
Is it possible to make @dependabot less noisy? So that it will at least edit its old PRs like this - https://github.com/OpenHumans/open-humans/pull/1145 - instead of closing and reopening new.
quantified-self quantifiedself citizen-science community-science