1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-09 16:45:51 +01:00
Commit Graph

33 Commits

Author SHA1 Message Date
Matthew Planchard
98958cf2f8
ENH: Officially support python 3.8 (#292) 2020-01-11 23:53:13 -06: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
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
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
Matthew Planchard
66f24858df Giving up on build stages 2018-06-26 21:59:19 -05:00
Matthew Planchard
797167fcb2 More testing 2018-06-26 21:57:28 -05:00
Matthew Planchard
fd170f899b Reordered stages for testing 2018-06-26 21:52:47 -05:00
Matthew Planchard
2206fd543a Moved install and script keys 2018-06-26 21:51:30 -05:00
Matthew Planchard
3d69d60e92 Trying to figure out travis build stages 2018-06-26 21:33:24 -05:00
Matthew Planchard
abba8ecd42 Add language to 2nd stage of travis build 2018-06-26 21:23:00 -05:00
Matthew Planchard
3e1a399fe3 Add simple functional tests for docker 2018-06-26 21:19:03 -05:00
Matthew Planchard
8639ad3d40 Provide Prerelease Testing for Twine
Resolves #203
Related to pypa/twine#314

This commit adds an ``sh -c`` call, whose argument is the value of the
environment variable ``PYPISERVER_SETUP_CMD``, or ``true`` if that
variable is not set. This was specifically added to enable the
``pre_twine`` environment, which is provided to automatically test
pre-releases of twine, both for our use (e.g. #203) and for the use of
the twine maintainers (pypa/twine#314).

The capacity to specify an arbitrary setup command via an environment
variable may also wind up being useful in other cases in the future.

In addition, the envlist is updated to include only Python versions we
actually support.

This commit also alphabetizes the ``dev.pip`` requirements and rmeoves
specific requirements for testing using Python 2.5 (which we do not test
against anymore).
2018-03-06 20:08:14 -06:00
Kostis Anagnostopoulos
a9d8c18163 chore(travis): +py36, +pypy3, no-sudo, with tox-travis plugin
from https://github.com/tox-dev/tox-travis
2017-10-31 12:55:31 -05:00
Matthew Planchard
4b94647cef * trying update within gen-standalone again 2016-07-17 16:35:39 -05:00
Matthew Planchard
45cc42c5a6 Local certfile 2016-07-17 16:25:09 -05:00
Matthew Planchard
c6a8568e74 * attempting cert update within gen_standalone.sh 2016-07-17 15:38:53 -05:00
Matthew Planchard
5371afdaaa * Removed cert update from travis 2016-07-17 15:13:58 -05:00
Matthew Planchard
14c599773b * Attempt to update certs via travis 2016-07-17 15:04:00 -05:00
Matthew Planchard
a05d5a103b Update Tests for New Twine
* Updated .travis.yml to fix PEP 440 warnings
* Fixed twine calls

We were getting test failures on multiple branches in
`test_server.py`. I first investigated a warning message
popping up in every test run:

```
PEP440Warning,
/home/travis/virtualenv/python3.5.2/lib/python3.5/site-packages/pkg_resources/__init__.py:2510: PEP440Warning: 'setuptools (git-0.4.0)' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions.
```

Moving the installation of setuptools, pip, sphinx, and tox
into the `install` key for Travis resolved that issue, but
`test_server.py` tests were still failing. It turns out that
Twine 1.7.0 added support for SSL cert specification and,
in the process, changed the call signature for the `upload`
and `register` internal methods.

This PR fixes the calls so that they align with Twine's new
function signature. Note that tests now fail on Twine <1.7.0,
so I have also updated the dev requirements file.
2016-07-17 14:35:58 -05:00
Kostis Anagnostopoulos
62f60ccef7 docs: Add mplanchard into maintainers.
- ci: check standalone before anything else.
2016-06-28 13:18:03 +02:00
Kostis Anagnostopoulos
18e5a8dbcb FIX #154, docs: TC-script checking README RST-compliance for PyPi. 2016-06-28 13:05:11 +02:00
Matthew Planchard
4a299ec40b Added python3.5 support to setup.py and tests for #108
- Added wheel to dev requirements
2016-01-20 23:30:22 +01:00
Kostis Anagnostopoulos
0c4c27fa5c v1.2.0.dev1 (<--1.1.10): Stop supporting py<2.7 & py<3.3 (#107). 2016-01-20 20:05:47 +01:00
Kostis Anagnostopoulos
cee248110b TravisCI: Stop testing on py3.2; too old! 2016-01-20 19:21:52 +01:00
ankostis on tokoti
133afe28f7 Rework standalone generation using ZIP.
+ Standalone executable based on wheel.
+ Properly use `pkg_resources` so reading `welcome-msg` file
  works even from within zip.
  + Mark `zip_safe=True` in setup.py.
+ Delete forgotten distutils startup script.
+ Build standalone before installing anything else,
  to check if any deps are missing.
+ Restore py25 in Travis.
2015-09-17 01:13:37 +02:00
ankostis on tokoti
bd3612d79a FIX standalone generation under PY3.
Add standalone-creation TC.
2015-09-14 09:56:53 +02:00
Kostis Anagnostopoulos at STUW025
1fd5653317 FIX #55: Allow unauthenticated uploads with -P . option.
+ Add `mock` lib into test-dependencies for py2.
+ travis: Use new containers.
2015-09-11 16:08:13 +02:00
Kostis Anagnostopoulos, Yoga-2
24114e6761 Tox-test PY34 on also on TravisCI and classifiers. 2015-02-17 01:46:01 +01:00
Ralf Schmitt
dab48a4f66 use tox without the .travis-runtox script 2014-01-07 16:49:44 +01:00
Ralf Schmitt
7bceb0c4aa don't test with python 2.5 on travisci
looks like a pip/virtualenv bootstrapping problem:

,----
| Downloading/unpacking pytest>=2.3
|
| Exception:
|
| Traceback (most recent call last):
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/basecommand.py", line 139, in main
|
| status = self.run(options, args)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/commands/install.py", line 266, in run
|
| requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/req.py", line 1026, in prepare_files
|
| url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/index.py", line 125, in find_requirement
|
| page = self._get_page(main_index_url, req)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/index.py", line 353, in _get_page
|
| return HTMLPage.get_page(link, req, cache=self.cache)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/index.py", line 471, in get_page
|
| resp = urlopen(url)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/download.py", line 143, in __call__
|
| response = self.get_opener(scheme=scheme).open(url)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/download.py", line 201, in get_opener
|
| raise NoSSLError()
|
| NoSSLError:
|
| ###################################################################
|
| ## You don't have an importable ssl module. You are most ##
|
| ## likely using Python 2.5, which did not include ssl ##
|
| ## support by default. In this state, we can not provide ##
|
| ## ssl certified downloads from PyPI. ##
|
| ## ##
|
| ## You can do one of 2 things: ##
|
| ## 1) Install this: https://pypi.python.org/pypi/ssl/ ##
|
| ## (It provides ssl support for older Pythons ) ##
|
| ## 2) Use the --insecure option to allow this insecurity ##
|
| ## ##
|
| ## For more details, go to the "SSL Certificate Verification" ##
|
| ## section located here: ##
|
| ## http://www.pip-installer.org/en/latest/logic.html ##
|
| ## ##
|
| ###################################################################
|
`----
2013-04-02 22:19:17 +02:00
Ralf Schmitt
91f04be369 don't test the standalone branch 2012-12-02 23:22:54 +01:00
Ralf Schmitt
be52ec1c40 fix .travis.yml, tox.ini
python 2.5 needs an older webob version. so, we add the dependency in
tox.ini. we use tox to run the tests on travis.

remove python 3.3 from travis.yml as it's not there yet.
2012-12-02 02:35:50 +01:00
Marc Abramowitz
6caa8e717c Add .travis.yml for Travis CI (http://travis-ci.org/) 2012-06-22 00:53:31 -07:00