Commit graph

789 commits

Author SHA1 Message Date
Darren
245f93cca6
dependabot 2022-07-14 06:16:54 -05:00
Darren
0e89d18bc5
fix: pygment crashes (#209)
Dpaste crashes when something else than plain text is stored.
https://user-images.githubusercontent.com/428000/171509933-116ea4d2-105e-4d75-b731-0d2fad1c8fd7.png

!! This is a temporary fix for the problem described above.

This fixes it by downgrading the pygment version.

Note: I also remove mysqlclient as was an accidental commit.
---

Fixes: https://github.com/DarrenOfficial/dpaste/issues/208
Origin: https://github.com/pygments/pygments/issues/2119

Signed-off-by: Darren <git@darrennathanael.com>
2022-06-02 13:35:20 -04:00
Darren
51e9172479
Revert "Revert "add the posibility of specifying a url prefix"" (#206)
* Revert "Revert "add the posibility of specifying a url prefix (#143)" (#205)"

* mysql client
2022-05-29 13:56:56 -04:00
Darren
5ec8e0507e
Revert "add the posibility of specifying a url prefix (#143)" (#205)
This reverts commit 5510329a99.
2022-05-29 09:40:46 -04:00
Juanjo Gutiérrez
5510329a99
add the posibility of specifying a url prefix (#143)
this commit implements a prefix for urls, which allows easily deploying
dpaste into a "subdirectory". It adds a url_prefix to be read by default
from the environment which makes it especially suitable for using for
docker containers. For example, running

docker run -e PREFIX_URL=dpaste/ -p 8000:8000 barttc/dpaste

will make dpaste available on

http://localhost:8000/dpaste/

instead of the default http://localhost:8000

This is specially useful if you want to proxy dpaste from another host
and let it live in a sub-url. Without this commit all urls would be
incorrectly generated in this case.
2022-05-27 20:17:08 -04:00
Darren
246f8239f5
deps update (#204)
* perf: update sass to v1.52.1
* perf: update workflows version


Signed-off-by: Darren <git@darrennathanael.com>
2022-05-26 03:28:25 -04:00
renovate[bot]
10f1175596
fix(deps): update dependency sass to v1.51.0 (#199)
Co-authored-by: Darren Nathanael <git@darrennathanael.com>
2022-04-26 04:44:14 -05:00
renovate[bot]
e800e50323
fix(deps): update dependency sass to v1.50.1 (#193)
Co-authored-by: Darren Nathanael <github@darrennathanael.com>
2022-04-19 00:02:30 -04:00
renovate[bot]
433bf16389
chore(deps): update node.js to v12.22.12 (#197)
Co-authored-by: Darren <git@darrennathanael.com>
2022-04-08 20:28:03 -04:00
Darren
3d4baa46dd
revert: js
revert until I figured out a better way if detecting client. https://github.com/DarrenOfficial/dpaste/issues/196
2022-04-08 07:19:47 -05:00
renovate[bot]
6017a208e5
chore(deps): update node.js to v12.22.11 (#184)
Co-authored-by: DarrenOfficial <github@darrennathanael.com>
2022-04-03 18:34:03 -05:00
Darren
1718d53b1f
make it only run on master branch 2022-04-03 01:50:39 -04:00
Darren
a9e843367a
perf: updated lib, typing issues (#195)
Fixes deduplication of stuff
and fixes the deprecated warnings by changing the methods to use the new one.

Signed-off-by: Darren <git@darrennathanael.com>
2022-04-03 01:38:37 -04:00
Darren
8dfbb2e352
Run when test is done
docker push
2022-03-31 18:21:21 -05:00
Darren
2a5514631c
run after everything is complete 2022-03-31 18:05:35 -05:00
Darren
84ba7afcc9
build for multiple arc (#194) 2022-03-31 18:03:50 -05:00
renovate[bot]
3b1c7f91fe
chore(deps): update dependency django-webserver to v1.2.0 (#185)
Co-authored-by: DarrenOfficial <github@darrennathanael.com>
2022-03-30 01:25:46 -05:00
Darren
8aa1d51146
feat: 3.6
- Added support for Python 3.9.
- Added support for Python 3.10.
- Removed cache headers for all views except 404. Due to that snippets can be
  deleted, it's not trivial to have them removed from upstream caches.
- Bump pygments version to 2.11.
- update dependency psycopg2-binary to v2.9.3
- Addresses bug in cleanup_snippets script [#191](https://github.com/DarrenOfficial/dpaste/issues/191)
- Removed docs, since it's moved to [docs.dpaste.org](https://docs.dpaste.org), [darrenofficial/dpaste-docs](https://github.com/darrenofficial/dpaste-docs) and will be updated there.
- Removed changelog from main branched, it's moved to https://docs.dpaste.org/changelog/

Signed-off-by: Darren <git@darrennathanael.com>
2022-03-27 09:17:23 -04:00
Florian Cech
7a64572cc1
Addresses bug in cleanup_snippets script related to non-integer values for EXPIRE_DEFAULT (#192)
See https://github.com/DarrenOfficial/dpaste/issues/191

Co-authored-by: Darren <github@darrennathanael.com>
2022-03-22 17:30:24 -05:00
renovate[bot]
d56fd5cfa8
chore(deps): update dependency psycopg2-binary to v2.9.3 (#186)
Co-authored-by: Darren <github@darrennathanael.com>
2022-03-18 06:27:19 -04:00
renovate[bot]
ef278fa1d8
chore(deps): update actions/checkout action to v3 (#188)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-15 16:10:25 -04:00
renovate[bot]
f8f05d96cb
chore(deps): update actions/setup-python action to v3 (#189)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-15 16:09:52 -04:00
Darren
17be448727
contributing (#183) 2022-03-03 12:53:50 -05:00
Darren
3e67f886df
COC (#182) 2022-03-03 12:53:24 -05:00
renovate[bot]
29861ec8b1
Pin dependencies (#174)
* Pin dependencies

* Repo Link

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Darren <github@darrennathanael.com>
2022-03-03 12:37:16 -05:00
Darren
969df9eaeb
Additional information 2022-03-03 12:31:59 -05:00
Darren
3d4d18799e
Add author
Thanks stackoverflow https://stackoverflow.com/questions/9999829/how-to-specify-multiple-authors-emails-in-setup-py
2022-03-03 12:31:02 -05:00
Darren
b88bf7c4f9
Changelog 3.6 2022-03-03 12:27:30 -05:00
Darren
365f7af437
feat: Badge
Signed-off-by: Darren <git@darrennathanael.com>
2022-03-03 03:44:32 -05:00
Darren
1b35c3b8bc
feat: CI CD
Signed-off-by: Darren <git@darrennathanael.com>
2022-03-03 03:41:34 -05:00
Darren
b61b3f3e5e
Merge branch 'master' 2022-03-03 03:32:11 -05:00
Darren
3809545536
remove pycache 2022-03-03 03:29:49 -05:00
Darren
6e5d3c8489
merge master into dp4
Signed-off-by: Darren <git@darrennathanael.com>
2022-03-03 03:27:35 -05:00
Darren
f27e439ad0
feat: node-version
Signed-off-by: Darren <git@darrennathanael.com>
2022-03-03 03:15:03 -05:00
Darren
f40b01d2e4
delete package-lock.json 2022-03-03 03:12:50 -05:00
Darren
0ce78d752e
feat: build css & js
CSS and JS file for docker-compose users.

Signed-off-by: Darren <git@darrennathanael.com>
2022-03-03 02:30:30 -05:00
Darren
fe336b9bde
fix: there is no module with the namespace "math"
Signed-off-by: Darren <git@darrennathanael.com>
2022-03-03 02:16:51 -05:00
Darren
6bb64b096f
fix: DEPRECATION on columnGap.
division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Signed-off-by: Darren <git@darrennathanael.com>
2022-03-03 02:14:28 -05:00
Darren
ec696040a5
build: django 4, pygments 2.11
Signed-off-by: Darren <git@darrennathanael.com>
2022-03-03 02:08:29 -05:00
Darren
90cf2d9585
Set tags to latest
to avoid confusion, the v1 is replaced by latest.
2022-01-20 10:47:21 -05:00
Darren
d324f0058e
Update readme to MD format 2022-01-10 12:50:10 -05:00
Darren
f263d3c67b
Renamed Python
From Python Building, to Python CI
2022-01-10 12:48:09 -05:00
Darren
d1bbf9aa5f
Docker Latest Tag
added latest tag for docker builds
2022-01-10 12:47:29 -05:00
Darren
de35846d11
auto push 2022-01-10 12:41:19 -05:00
Darren
594a77a2d1
docker 2022-01-10 12:36:56 -05:00
renovate[bot]
45e74bde71
Update Node.js to v12.22.8 (#163)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-08 21:06:16 -05:00
renovate[bot]
eb819e347a
Configured renovate bot
Co-authored-by: Renovate Bot <bot@renovateapp.com>

This configures renovate to help dpaste.org stays up-to date!
2022-01-01 15:29:14 -05:00
Darren
d7b9198c6e
Fixed typo. Resolved #157 2021-12-28 23:10:10 -05:00
Darren
3509bc877e
dpaste change info badge, and github url 2021-12-28 05:39:00 -05:00
Darren
dbc3b691a9
Rename python-validations.yml to building.yml
Use github actions instead of travis.ci
2021-12-28 05:36:42 -05:00