Commit Graph

391 Commits

Author SHA1 Message Date
Itamar Turner-Trauring
5b0762d3a3 Workaround for autobahn issues. 2022-05-10 13:59:58 -04:00
Itamar Turner-Trauring
e5b0e51f72 Server-side schema validation of CBOR. 2022-04-11 13:11:45 -04:00
Itamar Turner-Trauring
9d9ec698e0 Add support for Python 3.10. 2022-02-23 11:07:56 -05:00
Itamar Turner-Trauring
21e288a4d0 Technically don't support 3.10 yet. 2022-02-15 14:35:18 -05:00
Itamar Turner-Trauring
be2590f9b8 Python 2 is now unsupported. 2022-02-15 10:20:52 -05:00
Itamar Turner-Trauring
609bd819bb Merge remote-tracking branch 'origin/master' into 3855-immutable-http-apis-part-1 2022-01-25 10:42:04 -05:00
Itamar Turner-Trauring
e9d6eb8d0e Need some fixes in this version. 2022-01-24 11:30:49 -05:00
Itamar Turner-Trauring
8eb6ab4765 Switch to Python 3.7 as minimal version. 2022-01-24 10:42:09 -05:00
Itamar Turner-Trauring
f09aa8c796 Use pre-existing parser for Range and Content-Range headers. 2022-01-20 11:16:06 -05:00
Itamar Turner-Trauring
7e3cb44ede Pin non-broken version of Paramiko. 2022-01-07 10:13:29 -05:00
Itamar Turner-Trauring
777d630f48 Another dependency. 2021-11-12 12:00:07 -05:00
Itamar Turner-Trauring
e7a5d14c0e New requirements. 2021-11-12 11:25:10 -05:00
Jean-Paul Calderone
efc9dc831b Revert "a stab at using setup.cfg and setuptools_scm"
This reverts commit 68e8e0a7d5.
2021-10-14 11:01:37 -04:00
Jean-Paul Calderone
68e8e0a7d5 a stab at using setup.cfg and setuptools_scm 2021-10-14 10:58:41 -04:00
meejah
0a072a98c8
Merge pull request #1125 from hacklschorsch/3786.openmetrics
3786 Add OpenMetrics (Prometheus) statistics endpoint
2021-09-28 13:21:46 -06:00
Itamar Turner-Trauring
6ef3811112 Prevent conflicting overlapping writes. 2021-09-24 11:54:08 -04:00
Jean-Paul Calderone
7183d53c23 put test dependency in the setuptools test extra 2021-09-23 07:58:02 -04:00
Sajith Sasidharan
65a1040fe8
Update references to the mailing list
New list is tahoe-dev@lists.tahoe-lafs.org, list info page is at
https://lists.tahoe-lafs.org/mailman/listinfo/tahoe-dev, and list
archives are now at https://lists.tahoe-lafs.org/pipermail/tahoe-dev/.

Sadly message numbers in list archive seem to have changed, so
updating references to list archive is not as simple as prefixing
`list.`
2021-08-31 09:58:43 -04:00
Itamar Turner-Trauring
6df4fa315e Add explicit dependency on Click. 2021-08-26 14:55:41 -04:00
meejah
7ad6c9269c Merge branch 'master' into 2916.grid-manager-proposal.5 2021-08-25 14:04:53 -06:00
Itamar Turner-Trauring
6475b44336 Get rid of unnecessary version constraints. 2021-07-05 16:17:26 -07:00
Itamar Turner-Trauring
72d5bedf14 Depend on newer foolscap. 2021-07-02 10:10:26 -07:00
Sajith Sasidharan
ae6e1e9e2f Use io.open() instead of builtin open()
Windows does not like when we open README.rst using builtin open():

  Traceback (most recent call last):
    File "setup.py", line 360, in <module>
      long_description=open('README.rst', 'rU').read(),
    File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\encodings\cp1252.py", line 23, in decode
      return codecs.charmap_decode(input,self.errors,decoding_table)[0]
  UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 1720: character maps to <undefined>
2021-04-05 19:11:58 -04:00
Sajith Sasidharan
d9446f9f06 Remove deprecated U mode from open() call
Under the right conditions (with newer Python 3.x versions), we will
see this warning:

    setup.py:360: DeprecationWarning: 'U' mode is deprecated

`U` is for `universal newline mode`.  Docs for open() says this:

    'U' mode is deprecated and will raise an exception in future versions
    of Python.  It has no effect in Python 3.  Use newline to control
    universal newlines mode.

Off it goes.
2021-04-05 18:57:47 -04:00
Sajith Sasidharan
add2be1b44 Pin decorator
CI broke when decorator 5.0.1 (a dependency via pytest-twisted) with
dropped Python 2.7 compatibility was released.
2021-04-02 10:24:43 -04:00
meejah
4a5bb5e8ff Merge branch 'master' into 2916.grid-manager-proposal.5 2021-03-23 16:04:50 -06:00
Sajith Sasidharan
d24d0519b1 Continue using known working txi2p for Python 2
Proceeding with caution here, because the txi2p-tahoe fork is rather
hurriedly done, and we are unsure about Tahoe-LAFS' i2p testing story.
None of the currently active Tahoe-LAFS contributors use i2p, so we
won't know if we are breaking things.
2021-03-12 15:21:32 -05:00
Sajith Sasidharan
7c03bb6184 Give CI a kick 2021-03-10 14:48:08 -05:00
Sajith Sasidharan
86853dc3d0 Use forked release of txi2p for Python 3 support
We've poked https://github.com/str4d/txi2p/issues/10 a few times with
requests for a new release, with scant success.  So txi2p-tahoe is a
thing now.
2021-03-10 13:26:21 -05:00
Jean-Paul Calderone
7b82a1230f Drop txi2p for Python 3 entirely
PEP-508 "URL lookups" are unsupported in packages released on PyPI
2021-03-01 13:47:39 -05:00
Jean-Paul Calderone
7c9e757f70 go back to a released txi2p for python 2 2021-03-01 13:44:27 -05:00
meejah
49838afa4d Merge branch 'master' into 2916.grid-manager-proposal.5 2021-02-02 10:03:04 -07:00
meejah
307a53dd71 Merge branch 'master' into 2916.grid-manager-proposal.5 2021-01-20 23:42:35 -07:00
Itamar Turner-Trauring
9ca17d780e Add some overall timeout, and timeout on specific test that seems to be the
issue somehow.
2021-01-13 10:21:06 -05:00
Itamar Turner-Trauring
ce58f63040 Merge remote-tracking branch 'origin/master' into 3584.integration-tests-sftp 2021-01-11 13:55:03 -05:00
Itamar Turner-Trauring
c1bc69e1f7 Remove two more references to FTP. 2021-01-08 13:47:32 -05:00
Itamar Turner-Trauring
a536a1a970 First passing end-to-end test of SFTP 2021-01-07 12:50:31 -05:00
meejah
613a6f80aa Merge branch 'master' into 2916.grid-manager-proposal.5 2021-01-04 15:12:17 -07:00
Jean-Paul Calderone
ae87d53e49 Let us have a ~5ish coverage 2020-12-29 13:35:33 -05:00
Itamar Turner-Trauring
052b3d9fb1 Re-enable logging validation on Python 3. 2020-12-16 10:06:59 -05:00
meejah
a0a39d3561 Merge remote-tracking branch 'origin/master' into 2916.grid-manager-proposal.5 2020-11-25 19:27:49 -07:00
Jean-Paul Calderone
b1244543f2 Bump to a Twisted that has Site.getContentFile support 2020-11-18 15:42:10 -05:00
meejah
25ff7c6f55 Merge branch 'master' into 2916.grid-manager-proposal.5 2020-11-13 16:48:14 -07:00
meejah
2118a2446e grid-manager stand-alone, via Click 2020-11-06 22:23:53 -07:00
Itamar Turner-Trauring
dce8d3598a Be even more lenient, in the hopes of working on Nix. 2020-10-27 08:54:16 -04:00
Itamar Turner-Trauring
4b7ab2bfd8 Version that works with Python 2. 2020-10-26 16:54:19 -04:00
Itamar Turner-Trauring
d5333ae9f9 Merge remote-tracking branch 'origin/master' into 3485.backported-configparser-for-py-2 2020-10-26 16:53:19 -04:00
Itamar Turner-Trauring
f50fd8e474 Switch to new configparser backport. 2020-10-26 12:12:46 -04:00
Jean-Paul Calderone
931bdef2a2 Get rid of the old implementation and related unused code
Also put in the new implementation, though now it needs tests because *there
were no direct tests for the old one*.
2020-10-23 09:23:16 -04:00
Jean-Paul Calderone
4305777f88 Nevow is no longer a dependency 2020-10-21 10:03:06 -04:00
Jason R. Coombs
d74d7e733c Merge branch 'master' into 3394.py38-tests 2020-09-09 21:42:32 -04:00
Sajith Sasidharan
e893254855 Use Pyrsistent < 0.17.0 2020-09-08 17:23:08 -04:00
Sajith Sasidharan
810c7eefd8 Pin Pyrsistent at a Python 2.7 compatible version 2020-09-08 16:31:57 -04:00
Jason R. Coombs
c48548a7ca Allow installation on later versions of Python. 2020-08-21 19:55:34 -04:00
Sajith Sasidharan
a9fa70c3d5 Add upper bound for attrs library 2020-08-21 15:55:39 -04:00
Itamar Turner-Trauring
4dae5d867c Add retry logic, listenOnUnused is potentially flaky. 2020-07-28 11:09:02 -04:00
Itamar Turner-Trauring
04db52b9e4 Some manual tweaks to be more likely to work with Python 3.
The Linux distribution porting code was obsolete (using Python APIs not present
in Python 3, /etc/lsb-release isn't a thing on Fedora 31, for example), so
replaced it with maintained third-party library.
2020-07-24 14:06:12 -04:00
Chad Whitacre
3f887f9279 Respond to review
- Use the subunitv2-file reporter to allow for nicer error handling
- Undo the depgraph.sh change, see if it really matters
- Rename passing -> ratchet-passing to distinguish from ported modules
  tracker
- Misc. documentation and ratchet.sh improvements
2020-07-14 20:11:58 -04:00
Chad Whitacre
d25c8b1a25 Start ratcheting up passing tests under Python 3 2020-07-13 22:42:48 -04:00
Chad Whitacre
5a2ee5387a Bump txi2p to unreleased version that supports Py3
The plan is to keep i2p support around, in the hopes that upstream libs
(txi2p, foolscap) are ported to Python 3 by the time we _really_ need
them.
2020-07-13 22:27:59 -04:00
Chad Whitacre
2eab253b0f Change python_requires in setup.py 2020-07-13 22:27:59 -04:00
Itamar Turner-Trauring
0bc8a441a9 Add pyutil as direct dependency; it was previously indirect dependency via zfec. 2020-07-08 11:56:53 -04:00
Itamar Turner-Trauring
e06d41442a Merge remote-tracking branch 'origin/master' into 3324-humanreadable-python-3 2020-07-07 11:03:33 -04:00
Itamar Turner-Trauring
906d6ac291 Switch to flake8 as a better way of running pyflakes. 2020-07-06 13:50:06 -04:00
Itamar Turner-Trauring
83182e1d38 Remove extraneous semicolon. 2020-07-03 13:15:13 -04:00
Itamar Turner-Trauring
70a029fb81 Tests pass on both Python 2 and Python 3. 2020-07-02 14:26:35 -04:00
Itamar Turner-Trauring
c207a0c932 Port test_humanreadable.py to Python 3. 2020-07-02 14:10:38 -04:00
Jean-Paul Calderone
76d667865e
Remove some top-level packaging related to magic-folders 2020-02-13 10:21:45 -05:00
Jean-Paul Calderone
5bd84895fd
Merge pull request #685 from tahoe-lafs/2392.pywin32
Replace pypiwin32 with pywin32

Fixes: ticket:2392
2020-01-20 14:09:32 -05:00
Jean-Paul Calderone
5dd355fbfa Stop accessing the maybe-deprecated Request.channel attribute 2020-01-17 11:45:08 -05:00
Jean-Paul Calderone
feb6c2f2fc depend on pywin32 instead 2020-01-17 10:59:23 -05:00
Jean-Paul Calderone
c8bd3e9a05 pin a known working foolscap 2020-01-13 10:52:09 -05:00
Jean-Paul Calderone
599419c820 comment about this requirement 2019-12-18 15:31:17 -05:00
Jean-Paul Calderone
8cb91f6f23 Try narrowing the coverage.py requirement
Perhaps the 5.0 release is causing problems
2019-12-18 13:11:59 -05:00
meejah
3b07a2873e
Merge pull request #659 from tahoe-lafs/3255.python3-porting-done-oracle
Add a Python 3 porting-done oracle to the test suite
2019-11-05 05:00:25 +00:00
Jean-Paul Calderone
d8eeaf6196 Declare a cryptography dependency. 2019-10-16 15:20:14 -04:00
Jean-Paul Calderone
971ead3148 Get the syntax right 2019-09-17 11:35:37 -04:00
Jean-Paul Calderone
98b3a644da add some tests 2019-09-17 11:35:37 -04:00
hab
985f659afe Merge remote-tracking branch 'upstream/master' into move-to-twt--introducer 2019-08-16 17:52:05 +01:00
Jean-Paul Calderone
739df66c80 can't have nice things 2019-08-14 14:48:12 -04:00
hab
e2aba7f4bb Use beautifulsoup4+html5lib for web tests.
Assertions about the rendered template will be easier to write and
don't rely on perfect substring matches.
2019-08-14 19:45:16 +01:00
Jean-Paul Calderone
faed622ee9 Add an "sftp" extra and put the Conch dependency there 2019-08-14 09:04:20 -04:00
Jean-Paul Calderone
e977395808 We can use the "compatibility" comparison now. 2019-08-13 19:11:44 -04:00
Jean-Paul Calderone
f1bc71811e Update this dated comment 2019-08-13 19:11:35 -04:00
Jean-Paul Calderone
e2ec4d3fa4 Get rid of _auto_deps.{install_requires,setup_requires} 2019-08-13 18:54:16 -04:00
heartsucker
67abb02a83 include package data for crypto tests 2019-06-13 22:19:28 -06:00
Jean-Paul Calderone
b477a4656d Also install the test plugins. 2019-05-08 18:42:17 -06:00
Chris Wood
76bb84a77f Express "watchdog" dependency via a setup.py extra
For consistency with PR #388 (a06cf2ea4c)
2019-03-14 11:23:16 -04:00
Jean-Paul Calderone
f20184ce95 Declare our new dependencies 2019-02-25 11:55:47 -05:00
Jean-Paul Calderone
f6e00248bb Explicitly select a pyflakes version 2019-01-24 10:23:26 -05:00
Jean-Paul Calderone
b13f1cc531 try with only one extra 2018-08-06 12:13:33 -04:00
Jean-Paul Calderone
f71bbff877 Basic towncrier skeleton 2018-08-06 10:13:16 -04:00
Brian Warner
05edde9a64 setup.py: unpin pypiwin32, should be fixed by now
At the time we pinned this to v219, I think the v220 on PyPI was broken for
py2.7, or they'd stopped producing newer wheels for py2 but the most recent
py2-capable one was broken. The upstream bug is fixed, so I'll unpin this and
see if it works.
2018-03-30 11:46:15 -07:00
meejah
5f8105ffdd pin pypiwin32 version until upstream bug fixed 2018-01-30 12:51:56 -07:00
Brian Warner
04fc0e43f7 setup.py: use python_requires= to complain about py3, not an exception
This allows a python3-based tox (as is common on modern debian/ubuntu
systems) to test our py2-only package. The first thing Tox does is to build a
wheel to install into the target virtualenv (which is a py2-based venv, for
tahoe). But Tox bug (https://github.com/tox-dev/tox/issues/507) in which this
wheel is built with the same python that Tox is using, instead of the python
from the target environment. Our setup.py would see sys.version_info with py3
and launch a crowbar into the works.

With python_requires=, pip is smart enough to know that it's ok to build
wheels with the wrong python, but "pip install" still throws a sensible error
message:

```
(ve36) ~/stuff/tahoe/tahoe$ pip install .
Processing /home/warner/stuff/tahoe/tahoe
tahoe-lafs requires Python '<3.0' but the running Python is 3.6.1
```

Closes ticket:2876
2017-08-15 18:37:39 -07:00
Jean-Paul Calderone
31f4272919 Use find_packages
It is a shorter and more reliably way to provide a value for the packages parameter.
2017-08-08 12:06:30 -04:00
Brian Warner
dc6398d265 setup.py: depend on 'treq' for [test] 2017-07-12 17:07:27 -07:00
David Stainton
e68b331bb1 Add servers of happiness hypothesis testing
Fix happiness test var names

Remove unused imports

Get rid of trailing whitespace
2017-06-05 16:26:46 -06:00
meejah
b0e291b431 remove comment to kick builders 2017-04-26 15:27:06 -06:00
tpltnt
c0888de394 raise RuntimeError if not Python 2 2017-04-21 00:36:16 +02:00