Commit Graph

759 Commits

Author SHA1 Message Date
Johannes Faigle
5fd640062c
Update README to reflect run/update commands (#451)
* DOC: Update README to use new run/update commands

* DOC: Remove running on heroku/dotcloud section from README

The linked repo isn't maintained with last update in 2012

* DOC: Update missing pypi-server cmds with run command

* DOC: Fix CI status badge
2023-02-02 13:19:04 +01:00
Christian Clauss
abc4bfb418
Upgrade to psf/black stable style 2023 (#474)
* Upgrade to psf/black stable style 2023

* Unpin psf/black
2023-02-02 13:08:09 +01:00
Dmitrii O
383c936fb8
chore: disable tests on Python3.6 (#471) 2023-02-02 12:44:46 +01:00
Dmitrii O
d716d0faf3
fix: explicit optional types in config.py (#472)
* fix: make auther function optional in Config

* fix: make args optional in from_args

* chore: autoformatting
2023-01-30 23:25:05 +01:00
Mason Lin
ae3dcf2bbd
feat: 🩺 allow customized health check endpoint (#442)
* feat: 🩺 allow customized health check endpoint

Get the liveness endpoint from the environment variable `HEALTH_ENDPOINT` and verify it. If the customized endpoint is invalied, it will fallback to the DEFAULT_HEALTH_ENDPOINT.

* test:  Test customized endpoint feature

* fix: 🚨 fix check

* feat: Use CLI interface to set health endpoint

* style: 💄 fix black format

* Separate 'build app' and 'add routes'

https://github.com/pypiserver/pypiserver/pull/442#discussion_r973771421

Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>

* keep DEFAULTS in config.py

Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>

* style alignment

Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>

* make CLI arg description more clear

Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>

* style: 🎨 style alignment

* refactor:  SRP, add routes after app created, instead of patching in app_from_config

* style: 🎨 format CLI help

* test:  add test_setup_routes_from_config

* fix: 🐛 test name doesn't work as expected because of using the wrong ids generator.

* test: 🧪 add config error cases for health endpoint

* test:  fix health_endpoint_arg tests

* fix:  Do not fallback to default silently, should raise error

* test: 🧪 add test_health_endpoint in test_main

* test:  setup routes in main

* docs: 📝 Update the help command output in the Quickstart

* docs: 🐛 missing space

* docs: 📝 Add 'Custom Health Check Endpoint' to 'Recipes'

* docs: 📝 refine README

* revert:  revert auto isoft

* build: 💚 fix mypy, missing return types

* Update README.rst

Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>

* Update README.rst

Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>

* Update pypiserver/config.py

Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>

* Update README.rst

Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>

* style: 💄 black format

* Update README.rst

Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>

Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>
2022-11-02 12:32:20 +01:00
Dmitrii Orlov
2f3b9979c9
fix: correct 1.5.1 tag date in CHANGES (#457)
fix: fix the 1.5.1 tag date in CHANGES
2022-11-01 10:36:41 +01:00
Christian Clauss
4a0c6fbed0
from importlib import reload for Python 3 (#448) 2022-10-28 09:42:51 +02:00
Dmitrii Orlov
0ba44b54f1
fix: force setuptools update + no duplicate runs in GH Actions (#445)
* fix: run on push only on master, otherwise only in PRs

* fix: pin versions

* chore: print python version

* chore: print python version

* chore: force upgrade setuptools & remove version prints
2022-10-28 00:47:45 +02:00
Christian Clauss
530852b279
Support current versions of CPython (#453) 2022-10-21 11:23:49 +02:00
Christian Clauss
6ea316c4c1
Upgrade GitHub Actions (#447)
* Upgrade GitHub Actions

* Update ci.yml

* Update ci.yml

* Drop Python 3.11-dev

* Re-add Python 3.6

* Re-add py36
2022-10-19 09:19:58 +02:00
Dmitrii Orlov
249cc6c7c4
chore(ver): bump 1.5.0-->1.5.1 v1.5.1 2022-10-18 16:06:16 +02:00
github-actions[bot]
16280557c0
chore(auto-release-candidate-10-01-2022) (#450)
* chore(rc-changes): update Changes.rst

* chore: adjust the CHANGES description

* chore: update release date in README

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>
2022-10-18 16:04:22 +02:00
Aron Bierbaum
784a9a134a
chore: Replace usage of deprecated inspect.getargspec (#436) 2022-09-09 10:01:45 +02:00
Dmitrii Orlov
bbd2a47bae
fix: docker tests in cicd (#444)
* fix: bump gevent version to 21.12.0

* chore: few naming cleanings in test_docker

* chore: run black formatter
2022-09-06 18:41:25 +02:00
Dmitrii Orlov
61e44871d4
feat: add extremely basic /health endpoint (#396)
* Add extremely basic /health endpoint

* Replace robot-sounds with Ok.

* add test case for /health endpoint

* Apply suggestion to _app.py:
- remove dot from Ok response in health endpoint

* Fix tests for the health endpoint

* Formatting _app.py
2022-07-26 23:28:48 +02:00
Dmitrii Orlov
640a74872b
Add traefik/ and auth/ dirs to gitignore (#398) 2022-07-20 18:13:32 +02:00
Kian-Meng Ang
a67829eea6
chore: Fix typos (#431) 2022-05-23 08:49:18 +00:00
Dmitrii Orlov
388658e624
chore(ver): bump 1.5.0-->1.5.0 v1.5.0 2022-05-01 22:36:23 +02:00
Dmitrii Orlov
c36fc51da2
fix package script usage 2022-05-01 22:36:06 +02:00
Dmitrii Orlov
6502f031d4
chore(ver): bump 2.0.0dev1-->1.5.0 2022-05-01 22:12:50 +02:00
Dmitrii Orlov
28959cfdbc
change RC date 2022-05-01 22:03:20 +02:00
Dmitrii Orlov
5308fba405
add tag ref for GH action 2022-04-26 02:12:49 +02:00
Dmitrii Orlov
c63b2b1337
Revert "chore(ver): bump 2.0.0dev1-->1.5.0"
This reverts commit 0e8a49dd1c23c39166cbd8ac727d295337cf5978.
2022-04-26 01:57:02 +02:00
Dmitrii Orlov
0e8a49dd1c
chore(ver): bump 2.0.0dev1-->1.5.0 2022-04-26 01:23:49 +02:00
Dmitrii Orlov
4538014127
Fix CHANGES.rst date 2022-04-26 01:23:29 +02:00
Dmitrii Orlov
fd97b465dd
Update changelog 2022-04-26 01:18:36 +02:00
Dmitrii Orlov
1f26b20421
fix(simplify-release-gh-actions): release in CI.yml (#428)
* get the release jobs back in ci.yml

* Delete unnecessary RLS workflow

* make both jobs depend on tests
2022-04-26 01:05:49 +02:00
Dmitrii Orlov
04a1826b9a
Revert "chore(ver): bump 2.0.0dev1-->1.5.0"
This reverts commit e675ab71fda6edc7bfc420da1ff7c1f67faadd09.
2022-04-25 23:46:40 +02:00
Dmitrii Orlov
e675ab71fd
chore(ver): bump 2.0.0dev1-->1.5.0 2022-04-25 23:44:12 +02:00
github-actions[bot]
4485902b6d
chore(auto-release-candidate-04-01-2022): 1.5.0 rc (#426)
* chore(rc-changes): update Changes.rst

* Adjust logs in CHANGES.rst

* Bump RC version to 1.5.0

* adjust RC candidate date

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>
2022-04-25 23:35:25 +02:00
Dmitrii Orlov
4d81ea7124
chore(package-release-from-gh-actions): Adding release management to GitHub actions (#423)
* Basic attempt for a release workflow in GH Actions

* move docker release to `release.yml`

* return the docker steps to ci.yml

* return the deploy-docker step to release.yml

* add wait for tests GA
2022-04-01 17:49:04 +02:00
Dmitrii Orlov
eb3d6941b1
remove the tmp directory & add to gitignore (#424) 2022-03-31 10:30:33 +02:00
Dmitrii Orlov
cd1e17cc26
fix(setuptools-in-tests): add packages=[] in test setup (#425)
* fix: add `packages=[]` in test setup

* pin setuptools below 62 for tests
2022-03-31 10:09:16 +02:00
Dmitrii Orlov
3ba17777da
chore(release-candidate-from-github-actions): add github action for release management (#417) 2022-03-25 19:31:39 +01:00
Dmitrii Orlov
e039f4011f
fix(typing-checks): fix small typing and lint errors in config.py (#421) 2022-03-24 09:25:00 +01:00
Dmitrii Orlov
3950cdc4bc
Merge pull request #415 from dee-me-tree-or-love/chore-adjust-contributors-entry-in-readme-rst
chore(new-people-readme): adjust maintainers & add call for new people
2022-02-21 10:11:05 +01:00
Dmitrii Orlov
f2330fa95e
Merge branch 'master' into chore-adjust-contributors-entry-in-readme-rst 2022-02-21 09:21:01 +01:00
Dmitrii Orlov
e608e8645f
Merge pull request #416 from dee-me-tree-or-love/fix-small-styling-fixes
fix(small-black-format-fixes): small styling fixes
2022-02-21 09:20:27 +01:00
Dmitrii Orlov
3b1a0f828d
Merge branch 'master' into fix-small-styling-fixes 2022-02-20 21:28:30 +01:00
Dmitrii Orlov
22d47a53db
Merge pull request #413 from domdfcoding/patch-1
Specify doctype for generated pages.
2022-02-20 21:27:49 +01:00
Dmitrii Orlov
cd4bff5785
Merge pull request #414 from luismsgomes/master
Fixed violation of PEP 503 warning with pip>=22
2022-02-20 21:20:06 +01:00
Dmitrii Orlov
a10cdcead3 Fix black errors on test_server.py 2022-02-20 21:17:20 +01:00
Dmitrii Orlov
049ae42b1a Fix black errors on backend.py 2022-02-20 21:16:51 +01:00
Dmitrii Orlov
050bc9e17c
Merge branch 'master' into chore-adjust-contributors-entry-in-readme-rst 2022-02-20 21:07:49 +01:00
Dmitrii Orlov
ee912cf1d3 chore(new-people): adjust maintainers & add call for new people 2022-02-20 21:06:12 +01:00
Luís Gomes
64b4d21318 Fixed violation of PEP 503 warning with pip>=22
When using pip >=22, we get the following warning:

"DEPRECATION: The HTML index page being used (https://....) is not a proper
HTML 5 document. This is in violation of PEP 503 which requires these pages
to be well-formed HTML 5 documents. Please reach out to the owners of this
index page, and ask them to update this index page to a valid HTML 5
document. pip 22.2 will enforce this behaviour change. Discussion can be
found at https://github.com/pypa/pip/issues/10825"
2022-02-10 13:42:02 +00:00
Dominic Davis-Foster
057d3b469d
Specify doctype for generated pages.
This ensures compliance with PEP 503
2022-01-30 22:26:29 +00:00
Dmitrii Orlov
bdbd839a1b
Merge pull request #407 from dee-me-tree-or-love/tp-temporarily-disable-cpython39-tests
Temporary disable tests for python3.9
2021-11-18 16:47:30 +01:00
Dmitrii Orlov
652a7171a6 disable tests for python3.9 2021-11-16 21:04:25 +01:00
Dmitrii Orlov
d34c99269a
Merge pull request #400 from dee-me-tree-or-love/tp-fix-mypy-check-dependencies-for-CI 2021-10-01 07:11:50 +02:00