Commit Graph

744 Commits

Author SHA1 Message Date
Géry Ogam
afafd0ae50 Update welcome.html (#283)
* Fix typos

* Improve HTML
2019-11-11 18:38:21 -06:00
Matthew Planchard
e074cd7c80
FIX: Move pip installation into base image
Resolves #264

Generally, pip doesn't need to be available for `pypiserver` to work
correctly, but the `-U` command to update packages requires it to be
importable. This ensures the `pip` module will be available in the final
image.
2019-11-10 18:11:39 -06:00
Géry Ogam
dbee4ec4ce Update welcome.html (#278)
* Update welcome.html

* Update test_app.py
2019-11-10 17:40:13 -06:00
Matthew Planchard
ec7ece1ece
Ignore pypy3 test status for GL 2019-10-19 13:09:53 -05:00
Matthew Planchard
5cd70bfe86
Chore: Revert "Update badge for gitlab (#272)"
This reverts commit de6a9ce19440975759e979fc47ba870192c99370.

Not going to be able to use GL because they do not support forks, so
reverting associated changes.
2019-10-19 13:05:52 -05:00
Géry Ogam
c6b42c3cf6 Update welcome.html (#276) 2019-10-19 12:52:39 -05:00
Matthew Planchard
d108dac5dd
Pull .travis.yml back into repo (#277)
I didn't realize GitLab does not support running PRs on forks for
mirrored GitHub repos. I have switched other projects to Azure
pipelines, but just to get things going, I'm going to pull .travis.yml
back in here.
2019-10-19 12:44:53 -05:00
Matthew Planchard
205342049b
[268] Ensure remove_pkg removes all pkg instances (#273)
* [268] Ensure remove_pkg removes all pkg instances

Reported by @esciara in #268.

Previously, the `remove_pkg` command was only removing the first
matching package that it found so if, for example, there were a .tar.gz
file and a .whl file, it would only remove one of them.

Of course, it could be run in succession to accomplish full removal, but
the expected behavior is that removal will remove the package entirely.

Here, I've grouped `remove_pkg` related tests into a test class, added
some tests that verify the expected behavior, and updated the
`remove_pkg` method to remove all matching packages.

* CHANGES.rst
2019-09-17 21:30:30 -05:00
Matthew Planchard
1f5c88a23e
Merge branch 'master' of github.com:pypiserver/pypiserver 2019-09-17 20:51:55 -05:00
Matthew Planchard
d4c6a2b693
chore: update classifiers for py3.7 2019-09-17 20:51:48 -05:00
Matthew Planchard
de6a9ce194
Update badge for gitlab (#272) 2019-09-17 20:50:48 -05:00
Matthew Planchard
972f1616dd
Use GitLab as CI Provider (#269)
* Add gitlab CI

* minmor updates to readme in /bin

* no autodeploy; less scary
2019-09-17 20:44:15 -05:00
Matthew Planchard
957538a260
FMT: pypiserver/_app.py 2019-09-17 20:43:43 -05:00
Matthew Planchard
a52c0d6f4c
fmt: tests/test_app.py 2019-09-17 20:29:48 -05:00
Matthew Planchard
9496be122f
chore(ver): bump 1.3.0-->1.3.1 v1.3.1 2019-09-10 19:02:31 -05:00
Matthew Planchard
4b65dcdf42
Prep for 1.3.1 2019-09-10 18:19:38 -05:00
Géry Ogam
88230a2111 Correct a command-line argument parsing bug (#271) 2019-09-10 17:36:21 -05:00
Géry Ogam
acfb0a6c3f Update README.rst (#270)
* Update README.rst

* Update README.rst

* Update __main__.py

* Update README.rst

* Update __main__.py
2019-09-10 17:35:18 -05:00
Matthew Planchard
91a5ebd8b1
[#265] Resolve issue with non-md5 hashing algorithms (#266) 2019-09-02 14:31:59 -05:00
Markus Holtermann
03e30846d8 Fix link to SO question in readme (#258) 2019-06-10 17:54:38 -05:00
Matthew Planchard
a8321cef5f
Update date on changelog 2019-05-05 17:06:00 -05:00
Matthew Planchard
2ef26a87ee
REL: 1.3.0 (#250)
* Compose updates; doc updates; changelog for 1.3.0

* chore(ver): bump 1.2.7-->1.3.0

* update date in README

* rst is not markdown

* Add issue numbers to changelog
v1.3.0
2019-05-05 16:47:06 -05:00
Matthew Planchard
eb128b768a
Merge pull request #248 from kujyp/behind_nginx_proxy
support changing the prefix of the path of the url
2019-05-05 13:17:12 -05:00
swe-jaeyoungpark
ad8db21b18 fix request.fullpath -> request.custom_fullpath on core.py 2019-05-02 23:39:00 +09:00
swe-jaeyoungpark
a060e99a25 implement "supporting changing the prefix of the path of url" again, using before_request hook. 2019-05-02 23:18:31 +09:00
swe-jaeyoungpark
c3965e31a0 fix typos on test_app.py 2019-05-02 23:14:31 +09:00
swe-jaeyoungpark
ae4dab30cc rollback bottle.py codes 2019-05-02 22:00:22 +09:00
swe-jaeyoungpark
8a196ddc90 add test cases with X_FORWARDED_HOST header 2019-04-29 18:22:35 +09:00
swe-jaeyoungpark
d154fc09ca Fix BaseRequest.urlparts.host and path correctly when the server is behind the reverse proxy 2019-04-29 18:21:41 +09:00
swe-jaeyoungpark
569929c95b support changing the prefix of the path of the url 2019-04-16 15:46:59 +09:00
Matthew Planchard
537034eb43
Merge pull request #242 from pypiserver/remove-pypiuploader-reference
Remove pypiuploader instructions
2019-03-11 16:31:54 -05:00
Matthew Planchard
0c5c6d5ac0
Remove pypiuploader instructions
Resolves #241

@willrogers points out that `pypiuploader` appears to be a dead project,
so we'll remove specific instructions for it in the docs, unless it
is confirmed to be otherwise.
2019-02-06 17:00:06 -06:00
Matthew Planchard
33b4e21017
chore(ver): bump 1.2.6-->1.2.7 2019-01-31 18:44:09 -06:00
Matthew Planchard
b21cdb1e90
Merge pull request #239 from ronneke1996/revamp-docker-file
Made the image smaller
2019-01-31 18:34:45 -06:00
Matthew Planchard
d162d660c4
Updated test & requirements filename
Thanks for your PR! I was wondering why everyone kept complaining about
`bcrypt`, when my local tests were succeeding just fine, so I spent
some time making the docker test script replicate the error.

Turns out the `.htpasswd` files I was generating were using md5, so they
were not triggering the error. The htpasswd file in this update does
use bcrypt encryption, so it triggers a 500 error on the previous
version of the Dockerfile.

I also updated the test to be a bit more thorough, validating an
authenticated upload in addition to just making sure the server is
running.

The only other change I made was to move `requirements.txt` into a more
specific `docker-requirements.txt` file, just to make it clear that its
intention is to be a part of the docker build and not the normal install
process.
2019-01-31 09:16:54 +01:00
Ron Nabuurs
7b9d0ef285
Made the image smaller
Fixed bcrypt
Added requirements.txt
2019-01-30 13:38:26 +01:00
Matthew Planchard
d6c25a7f7a
Trigger build to fix badge display 2019-01-28 21:08:46 -06:00
Matthew Planchard
e6a8bc556c
chore(ver): bump 1.2.5-->1.2.6 2019-01-26 16:15:55 -06:00
Matthew Planchard
0284cb7f50
Merge pull request #238 from pypiserver/237-CRLF-Injection
CRLF Injection Mitigation
2019-01-26 15:02:29 -06:00
Matthew Planchard
1375a67c55 CRLF Injection Mitigation
Resolves #237

Previously, we were not running any sort of URL escaping on values
passed in from the client that were used for redirects. This allowed
injection attacks via URL encoded newlines in the original request.

This update ensures that all user-supplied paths that are used as
components of redirects are passed through `urllib.parse.quote()`
(or the python 2 equivalent) prior to being used in a redirect
response.

Also specified 127.0.0.1 rather than 0.0.0.0 (the default) in server
tests to avoid triggering firewall dialogs when testing on MacOS
2019-01-24 17:53:03 -06:00
Matthew Planchard
4ab0c77e30 Updated release dates v1.2.5 2018-11-11 11:43:32 -06:00
Matthew Planchard
9956dedd6e Update README 2018-11-11 11:43:32 -06:00
Matthew Planchard
31e98f27d6 1.2.5 changes 2018-11-11 11:43:32 -06:00
Matthew Planchard
cf60c22d45 chore(ver): bump 1.2.5.dev0-->1.2.5 2018-11-11 11:43:32 -06:00
Matthew Planchard
b420c61b02
Merge pull request #229 from pypiserver/226-twine-test-fixes
test_server.py cleanup
2018-11-09 19:05:57 -06:00
Matthew Planchard
def22f49a7 another pep8 fn name 2018-11-09 18:46:06 -06:00
Matthew Planchard
410498a059 test_server.py cleanup
Resolves #226

Cleaned up `test_server.py` a bit:

* Call `twine` via `Popen` instead of using their internal API, which
  should help us from having to fix twine tests as often
* Cleaned up fixtures
* Some PEP8 updates and general formatting
* Grouped test fixtures and functions all before the tests themselves
2018-11-09 18:44:41 -06:00
Matthew Planchard
7601050612
Merge pull request #228 from pypiserver/docker-ownership
Ensured pypiserver user is assoc. w/group
2018-11-09 18:36:04 -06:00
Matthew Planchard
a10e85e946 Ensured pypiserver user is assoc. w/group 2018-11-09 18:21:32 -06:00
Matthew Planchard
ab1ec6ae16
Merge pull request #225 from pypiserver/224-add-bcrypt-to-docker
Add py-bcrypt to Dockerfile
2018-11-09 17:32:23 -06:00