1
0
mirror of https://github.com/pypiserver/pypiserver synced 2025-02-22 19:19:37 +01:00
Commit Graph

738 Commits

Author SHA1 Message Date
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
Dmitrii Orlov
a1d7264e03 Include Black Formatter fix 2021-09-10 14:02:54 +02:00
Dmitrii Orlov
48688d7e4c
Merge branch 'master' into tp-fix-mypy-check-dependencies-for-CI 2021-09-02 13:18:40 +02:00
Dmitrii Orlov
2885ac2e6d
Merge pull request #401 from dee-me-tree-or-love/tp-allow-gh-actions-for-fork-pull-requests
Allow GH actions to run on pull requests for forks
2021-09-02 13:18:27 +02:00
Dmitrii Orlov
be39eb2f05 Allow GH actions to run on pull requests for forks 2021-08-27 09:19:33 +02:00
Dmitrii Orlov
a1002c5e99 Install requires stub types for mypy in ci.yml 2021-08-27 09:11:26 +02:00
Dmitrii Orlov
3713da9d66
Merge pull request #395 from awachtler/master
added JSON Topic for use with micropython-upip
2021-08-26 13:39:32 +02:00
awachtler
7693c03485 json_info/doc: fixed typo in README.rst
<
2021-08-15 07:28:22 +02:00
awachtler
4e189aec9c json_info/doc: fix formatting 2021-08-13 06:59:36 +02:00
awachtler
fb81ab767a doc/json_info: added usage description with micropython. 2021-08-13 06:57:13 +02:00
awachtler
e7bc2bb75d test_app.py/json_info: added tests for the json_info endpoint 2021-08-12 07:46:42 +02:00
awachtler
c205355253 _app.py/json_info: improved error handling
- added redirect if package name is not normalized
- raise 404 error if package is not found
2021-08-12 07:43:57 +02:00
awachtler
a9414fb964 renamed max_version to latest_version 2021-07-19 05:46:43 +02:00
awachtler
1ae9f20e3f rollback version info 2021-07-19 05:44:58 +02:00
awachtler
d28fc966af rework json_info, made url generic, restructured code 2021-07-18 07:21:19 +02:00
awachtler
43958e4548 initial add json support 2021-07-16 12:23:05 +02:00
Dmitry Orlov
35fcdd0e06
Contributor documentation directory and README (#383)
* documentation directory setup

* basic README.md file as introduction

* fix typos...

Co-authored-by: Dmitrii Orlov <orlov@satelligence.com>
2021-04-15 10:16:08 -05:00
Bao Trinh
302b4a8a43
Correct README example (#380)
The readme incorrectly specifies `watchdog` as the name of the extra to install. It's actually specified as `cache`. see: df300de33d/setup.py (L49)
2021-03-04 09:08:16 -06:00
Matthew Planchard
df300de33d
Push to Docker Hub from CI (#375)
Adds a new helper script to determine which docker tags are needed for a
given ref going through CI, and uses those tags to populate the GH
actions matrix for a docker deploy step.
2021-02-07 20:24:33 -06:00
Matthew Planchard
8306de15db
Gunicorn/gevent docker, log fixes, cache busting (#371)
Updates the Docker configuration to use the gunicorn server with gevent
workers by default. Adds `waitress` to the docker container, so that if
no server is specified, we will fall back to that rather than `wsgiref`.

Making this happen brought a few other issues to light, which are also
addressed here.

- Docker log output not immediately being flushed to stdout (#358):
  resolved by setting the `PYTHONUNBUFFERED` env var to `t` in the
  docker container
- When the WSGIRef server is selected, its access logs are written
  directly to stderr, rather than going through the logging machinery:
  resolved by adding a new `WsgiHandler` class and passing in to
  bottle's `run()` method when running the wsgi server. This required a
  new `ServerCheck` class to determine whether the wsgi server is
  selected when the `auto` option is used
- When using `gunicorn` along with the watchdog cache, package uplaods
  were not being picked up by the watcher. Updated the `add_package`
  and `remove_package` methods on the `CachingFileBackend` to bust the
  cache
2021-02-07 17:04:06 -06:00
Matthew Planchard
d868005e1f
Docker improvements (#365)
* Docker improvements

This addresses much of what was brought up in #359. Specifically, it:

- Significantly improves testing for the Docker image, adding a
  `docker/test_docker.py` file using the regular pytest machinery to
  set up and run docker images for testing
- Hopefully addresses a variety of permissions issues, by being explicit
  about what access pypiserver needs and asking for it, only erroring
  if that access is not available
  - Requires RX permissions on `/data` (R to read files, X to list files
    and to be able to cd into the directory. This is important since
    `/data` is the `WORKDIR`)
  - Requires RWX permissions on `/data/packages`, so that we can list
    packages, write packages, and read packages.
  - When running in the default configuration (as root on Linux or
    as the pypiserver-named rootish user on Mac), with no volumes
    mounted, these requirements are all satisfied
  - Volume mounts still must be readable by the pypiserver user (UID
    9898) in order for the container to run. However, we now error early
    if this is not the case, and direct users to a useful issue.
  - If the container is run as a non-root, non-pypiserver user (e.g.
    because someone ran `docker run --user=<user_id>`, we try to run
    pypiserver as that user). Provided that user has access to the
    necessary directories, it should run fine.
- Fixes issues with running help and similar commands
- Updates the Docker image to use `PYPISERVER_PORT` for port
  specification, while still falling back to `PORT` for backwards
  compatibility
- Moves some docker-related things into a `/docker` directory
- Adds a `Makefile` for building a test fixture package sdist and wheel,
  so that test code can call `make mypkg` and not need to worry about it
  potentially building multiple times

The only issue #359 raises that's not addressed here is the one of
running pypiserver in the Docker container using some non-default server
for performance. I would like to do some benchmarking before deciding on
what to do there.
2021-02-06 11:28:15 -06:00
Matthew Planchard
df7454ff20
Add aggregate "tests" job (#370)
Adds an aggregate "tests" job to CI so that we can gate merges on that
without needing to keep merge gates up-to-date with the names of the
various jobs that collectively represent "all tests".

Also dropped the `pull-request` trigger, which I included originally
because I wasn't sure whether the tests on push would run for forks,
which they do!
2021-02-02 20:36:41 -06:00