Commit Graph

789 Commits

Author SHA1 Message Date
dependabot[bot] df04452e14
chore: Bump gevent from 21.12.0 to 24.2.1 in /docker
Bumps [gevent](https://github.com/gevent/gevent) from 21.12.0 to 24.2.1.
- [Release notes](https://github.com/gevent/gevent/releases)
- [Changelog](https://github.com/gevent/gevent/blob/master/docs/changelog_pre.rst)
- [Commits](https://github.com/gevent/gevent/compare/21.12.0...24.2.1)

---
updated-dependencies:
- dependency-name: gevent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 22:07:19 +00:00
Mitja O 2f0a56c380
fix: support Python 3.12 (#539)
* chore: pin explicit Python 3.12

* chore: add a `test-python` for stable Python

* chore: empty commit

* chore: add some FIXMEs

* chore: add `packaging`

* chore(wip): replace `LegacyVersion` with `packaging`'s `parse`

* chore(wip): bypass `strtobool` usage

* chore(wip): `pkg_resources` are deprecated

* chore(wip): naive way to support Python <3.12

* chore(wip): swap import order

* chore(wip): try fixing version check

* chore: add a fixme

* chore(wip): reverse legacy pip check

* chore(wip): legacy pip  check for 9 or lower

* fix: fix the legacy pip check

* chore: small cleanup

* chore(wip): try the `importlib_resources`

* chore: add small comment

* chore(wip): avoid `setup.py` in fixtures

* chore(wip): version-compatible wheel build

* chore: install `build` for `3.8` too

* fix: mypy issues

* chore: fix comments

* fix: more formatting fixes

* fix: mdformat

* fix: pass wrong auth to `failed_auth` test

* chore: cleanup packages before and after test runs

* chore(wip): try to bypass test error

* chore: add a tech debt comment

* chore: undo too many changes

* chore(wip): small debug experiment

* chore(wip): skip some tests

* chore(wip): use nonsense code

* fix(chore): small fix to the nonsense code

* chore(wip): try `--force-reinstall`

* chore: finalize the docker tests
2024-04-01 21:30:02 +02:00
Mitja O 84bf12cdd4
chore: make the last supported python version explicit in `ci.yaml` (#558)
* chore: make the last supported python version explicit

* fix: formatting
2024-04-01 12:23:42 +02:00
dependabot[bot] 946fbfe64e
chore: Update setuptools requirement from <62.0.0,>=40.0 to >=40.0,<70.0.0 in /requirements (#557)
chore: Update setuptools requirement in /requirements

Updates the requirements on [setuptools](https://github.com/pypa/setuptools) to permit the latest version.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v40.0.0...v69.2.0)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 12:14:44 +02:00
Chuck CBW d588913e75
feat: Bump github action versions and add multiarch support (#553)
feat: bump github action versions and add multiarch support
2024-04-01 11:33:17 +02:00
Mitja O 50c7a78f4f
chore: add tar xz test case (#538) 2023-11-13 16:19:52 +01:00
Daniel M. Weeks a558dbcfb2
Handle tar.xz archives (#536) 2023-11-13 16:02:36 +01:00
Dmitrii Orlov 2ab30ea2ec
chore(ver): bump 2.0.0-->2.0.1 2023-10-01 16:14:12 +02:00
Mitja O 9109f61d66
chore(release-candidate): v2.0.1 (#534)
* chore(rc-changes): update CHANGES.rst

* chore: update CHANGES.rst
2023-10-01 16:02:13 +02:00
Mitja O e788785fa4
Fix: dockerhub description readme (#533)
* fix: specify long_description MD type

* chore: black formatting

* fix: set the docker hub description
2023-10-01 15:42:40 +02:00
Mitja O 904f50fa79
fix: specify long_description as MD type (#532)
* fix: specify long_description MD type

* chore: black formatting
2023-10-01 15:19:32 +02:00
Mitja O ad9fb4a3b5
chore: simpler release_tag action (#530)
- no CHANGES check
- support dry-run mode
2023-10-01 15:12:03 +02:00
Dmitrii Orlov b4666c14a6
chore(ver): bump 1.5.2-->2.0.0 2023-10-01 14:23:38 +02:00
github-actions[bot] a49af99231
chore(auto-release-candidate-2023-10-01) (#529)
* chore(rc-changes): update CHANGES.rst

* Update CHANGES.rst

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Mitja O <dmtree.dev@yahoo.com>
2023-10-01 13:28:48 +02:00
shenJun df99872921
Fix Json Info for same version (#511)
* Update _app.py

* format code

* Revert "format code"

This reverts commit c5b0c9e20a.

* format code

* format code with black

* update test_json_info

* Update tests/test_app.py

Co-authored-by: Mitja O <dmtree.dev@yahoo.com>

* Update tests/test_app.py

Co-authored-by: Mitja O <dmtree.dev@yahoo.com>

---------

Co-authored-by: Mitja O <dmtree.dev@yahoo.com>
2023-09-25 09:58:11 +02:00
Johannes Faigle c235ef44fd
FEAT: Switch default hash-algo to sha256 (#459)
Closes #452
2023-09-08 12:30:54 +02:00
Mitja O 6417769207
chore: add GitHub container registry for stable images (#521)
* chore: extend docs

* chore(wip): attach ghcr

* chore(test): mock a docker-build-push run

* chore(test): verify `unstable` skips GHCR

* chore(test): second mock attempt to skip GHCR

* chore: cleanup after successful tests
2023-08-30 12:29:02 +02:00
Mitja O 4645f7b10a
chore: cleanup release process (#516)
* chore: convert bin/README to md

* feat: replace all dates with bumpver

* chore: date in README is now changed by `bumpver`

* chore: clarify the RC workflow

* chore: use global `/tmp` in RC

* chore: slightly prettier description

* chore: move changes file to env

* chore: introduce release_tag workflow

chore(wip): test trigger on PR

chore(wip): add filtered diff

chore(wip): switch to PATTERNS

chore(wip): up to bumpver

chore(wip): temporary disable check

chore(wip): setup python

chore(wip): test with a specific version

chore(wip): test bumpver commit

chore(wip): fix the bumpver usage

chore: cleanup the release_tag workflow

* chore: create draft release from CI

* chore: update the docs

* chore: provide details on the release process

* chore: tiny header update

* chore: remove commented-out code
2023-08-27 16:11:54 +02:00
Glenn e54270207d
TOC internal links (#520)
* bug: TOC links not working

Issue [513](https://github.com/pypiserver/pypiserver/issues/513)

The TOC links were not working when displayed on
github although they did work in the README.md preview mode.

Therefore I'm removing the link from each header that was linking back to the top of the document as was the case in the RST README.

* bug: TOC links not working

Issue [513](https://github.com/pypiserver/pypiserver/issues/513)

The TOC links were not working when displayed on
github although they did work in the README.md preview mode.

Therefore I'm removing the link from each header that was linking back to the top of the document as was the case in the RST README.

* bug: TOC links not working

mdmarkdown lint prefers "-" over "*"
2023-08-27 15:47:10 +02:00
Glenn f14b92cfbf
readme output diff on format error (#512)
* feat: dependabot

- add dependabot yml file to look in the docker & requirements folders
- split the requirements out of the test.pip into a test-requirements.pip file so dependabot recognizes it

It was found that in order to have the python dependabot
recognize the requirements a naming convention had to be
followed

* feat: dependabot

alter to monthly

* feat: markdown diff

Add a conditional check to output a diff between
what mdformat expects and what is actually in the
README.
2023-08-22 12:40:48 +02:00
Glenn 9edae77659
Feature/markdown conversion (#503)
* feat: markdown conversion

logo and badges

* feat: markdown conversion

fix logo path

* feat: markdown

table changes

* feat: markdown

table alignment

* feat: markdown

check toc

* feat: markdown

toc additions

* feat: markdown

quickstart section

* feat: dependabot

more details section in quick start

* feat: dependabot

correct bold

* feat: markdown

client side config, pip

* feat: markdown

typo in title

* feat: markdown

typo in configuring pip

* feat: markdown

apache like authentication section
an initial cut to view the markdown
in github

* feat: markdown

typo in markdown link

* feat: markdown

remove trailing colon

* feat: markdown

typo in shell markdown

* feat: markdown

standardize on 4 space indent in shell code block

* feat: markdown

complete markdown for section up to alternate installation methods

* feat: markdown

add more of the contents to test with

* feat: markdown

contents

* feat: markdown

contents

* feat: markdown

contents

* feat: markdown
dquote>
dquote> recipes

* feat: markdown
dquote>
dquote> recipes

* feat: markdown
dquote>
dquote> up to licensing

* feat: markdown
dquote>
dquote> contents

* Update README.md

Missing exclamation mark

* Update README.md

missing link

* Update README.md

remove duplicated text

* Update README.md

bold differences it Table of contents

* Update README.md

additional bold changes in table of contents

* Update README.md

broken link

* Update README.md

typo in link fix

* Update README.md

change code block to text as shell highlighting was showing some items in red

* Update README.md

code block shell to text

* Update README.md

correct pypi-server update section

* feat: markdown
dquote>
dquote> link back to TOC title

* Update README.md

change link to TOC title

* Update README.md

link test

* Update README.md

link update

* Update README.md

link update

* Update README.md

link update

* feat: markdown

links

* Update README.md

change the level of indent for uploading packages remotely

* Update README.md

add link to python-pam

* feat: markdown

apache link to TOC not working.

* Update README.md

grammar

* Update README.md

typo bold

* feat: markdown

undo bolded text in TOC and titles as linking does
not work

* feat: markdown

remove bold from TOC

* feat: feature

more link issues

* feat: markdown

fixing broken links

* feat: markdown

change text slightly as markdown only links to plain text

* feat: markdown

typo

* feat: markdown

more link typos

* Update README.md

typo in link

* Update README.md

link will not work with braces in the titles

* feat: markdown

run mdformat and apply changes, :) lint!

* feat:  markdown

- check via mdformat
- remove old check script
- update test-requirements.txt

* feat: markdown

correct the errors in the mdformat run command

* feat: markdown

for testing remove all the actual jobs

* feat: markdown

re-run mdformat

* feat: markdown

put the jobs back in after testing the mdformat
cmd for passing and failing via workflow dispatch

* feat: markdown

remove references to README.md

* feat: markdown

change action to workflow dispatch for testing

* feat: markdown

- update docker igore
- alter unit test to look for version number after md changes

* feat: markdown

black linting

* feat: markdown

update comments

* feat: markdown

update bumpver to look at md rather than rst file

* feat: markdown

replace workflow dispatch with pull request
to get ready for the final PR

* feat: markdown-delete-original

delete the original rst file

* feat: markdown-delete-original

change ci to workflow dispatch for testing

* feat: markdown-delete-original

revert workflow dispatch

* feat: markdown-badge-links

set the links back to the original
URLs.

* feat: markdown-badge-links

fix brackets

* feat: markdown

update the version and date

* feat: markdown conversion

markdown changes to conform to mdformat tooling.
2023-08-15 11:16:30 +02:00
Dmitrii Orlov faf5ddfcc3
chore(ver): bump 1.5.1-->1.5.2 2023-07-30 23:18:51 +02:00
github-actions[bot] 9c2ebf9e60
chore(auto-release-candidate-07-30-2023) (#505)
* chore(rc-changes): update Changes.rst

* chore: update changes.rst

* chore: update README.rst date

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Dmitrii Orlov <dmtree.dev@yahoo.com>
2023-07-30 21:00:29 +00:00
Timothée Mazzucotelli 3f520cdc18
fix: Add missing pip dependency (#500) 2023-06-26 10:07:10 +02:00
Glenn 85e065e1ad
Feat/dependabot (#493)
* feat: dependabot

- add dependabot yml file to look in the docker & requirements folders
- split the requirements out of the test.pip into a test-requirements.pip file so dependabot recognizes it

It was found that in order to have the python dependabot
recognize the requirements a naming convention had to be
followed

* feat: dependabot

alter to monthly
2023-06-23 17:15:46 +00:00
Mason Lin 73dbe153e3
Health endpoint usage is missing. (#481)
Health endpoint 

README’s `pypi-server run` arguments document is remove by PR #451, and health-endpoint is missing when the `pypi-server run` arguments document bring back in #478
2023-04-27 14:41:58 +02:00
dependabot[bot] e0c9723ee7
chore: Bump waitress from 1.4.4 to 2.1.2 in /docker (#454)
Bumps [waitress](https://github.com/Pylons/waitress) from 1.4.4 to 2.1.2.
- [Release notes](https://github.com/Pylons/waitress/releases)
- [Changelog](https://github.com/Pylons/waitress/blob/v2.1.2/CHANGES.txt)
- [Commits](https://github.com/Pylons/waitress/compare/v1.4.4...v2.1.2)

---
updated-dependencies:
- dependency-name: waitress
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-07 19:20:09 +01:00
Dmitrii O a95f456a68
chore: update docs folder (#479)
* chore: change to `docs` directory

* chore: remove unused files

* chore: small update

* chore: small update

* chore: link to issue
2023-03-07 18:59:16 +01:00
Samuel Wein 8cc8e80a88
Update README.rst and config.py (#470)
* Update README.rst

Add note that the units of `--Cache-Control` is seconds.

* Update config.py

Update `--help` output for `--cache-control` to specify that AGE is in seconds.

---------

Co-authored-by: Dmitrii O <dmtree.dev@yahoo.com>
2023-03-07 17:12:06 +00:00
Dmitrii O 754b0f40d7
chore: add help output for `run` and `update` to README (#478) 2023-03-07 16:45:13 +01:00
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 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 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