Anders Kaseorg
5f81eb3a70
Update zulipchat.com links to zulip.com.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-06-11 21:06:58 -07:00
neiljp (Neil Pilgrim)
540d453237
setup.py: Add Source & Documentation project_urls.
...
The only existing url points to zulip.org -> zulipchat.com
2020-05-05 09:20:50 -04:00
neiljp (Neil Pilgrim)
f2c8295fcb
requirements: Remove unnecessary install dependency upon six & typing.
...
The latest release was fully python 3.5+, making these dependencies
redundant.
2020-05-05 09:20:50 -04:00
Anders Kaseorg
5428c5f296
typing: Convert function type annotations to Python 3 style.
...
Generated by com2ann (slightly patched to avoid also converting
assignment type annotations, which require Python 3.6), followed by
some manual whitespace adjustment, and two fixes for use-before-define
issues:
- def set_zulip_client(self, zulipToJabberClient: ZulipToJabberBot) -> None:
+ def set_zulip_client(self, zulipToJabberClient: 'ZulipToJabberBot') -> None:
-def init_from_options(options: Any, client: Optional[str] = None) -> Client:
+def init_from_options(options: Any, client: Optional[str] = None) -> 'Client':
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
fe72f3b131
typing: Remove ‘if False’ guard for typing imports.
...
typing is in the Python 3.5 standard library.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
e30b3b094b
Modernize legacy Python 2 syntax with pyupgrade.
...
Generated by `pyupgrade --py3-plus --keep-percent-format` followed by
manual indentation fixes.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 15:04:36 -07:00
Eeshan Garg
dd201926fa
pypi_packages: Use README files for long descriptions.
2020-04-16 19:35:54 -07:00
Eeshan Garg
c55bf78c6b
pypi: Specify the correct license classifier for all packages.
2020-04-16 19:35:54 -07:00
rht
aee73b32e0
zulip/setup.py: Remove Python 2 from supported versions.
2020-04-03 08:18:08 -04:00
rht
4600ce59a3
Remove all remaining from __future__ imports.
2020-04-03 08:18:08 -04:00
rht
204871b518
Finish the remaining migration of shebang to python3.
2020-04-03 08:18:08 -04:00
Eeshan Garg
0b930cfe86
pypi: Add support for Python 3.8.
2020-03-26 13:38:08 -07:00
neiljp (Neil Pilgrim)
0a01ea0412
zulip: Move dependency on distro into zulip package.
2019-12-15 11:06:43 -08:00
Anders Kaseorg
bcffa76873
Restore dependency on typing package for Python < 3.5.
...
Apparently we still support Python 2.7 for some reason.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-09-03 13:29:52 -07:00
neiljp (Neil Pilgrim)
0427d962b0
setup.py: Add supported python versions for all packages.
2019-09-03 13:28:32 -07:00
Anders Kaseorg
804501610b
Remove dependency on typing package.
...
It’s in the standard library in Python ≥ 3.5. (We could have used
`'typing;python_version<"3.5"'` to continue supporting earlier
versions, but we don’t.)
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-08-09 17:29:04 -07:00
neiljp (Neil Pilgrim)
fc416082aa
zulip: Update setup.py to install matrix bridge & add dependencies.
...
Dependencies added:
* matrix_client: for matrix bridge itself;
* configparser: for python2 compatibility.
2018-08-08 17:26:15 -07:00
Joshua Pan
33e8352998
requirements: Add 'security' extra_require for requests.
...
There were some issues running bots due to SSL issues.
Adding the extra_require requests[security] adds 3
additional packages that deal with these issues.
2018-05-14 04:28:53 -07:00
neiljp (Neil Pilgrim)
55d75b11bc
packaging: Add py.typed marker file & install in setup.py.
...
This follows the provisional new PEP 561:
https://www.python.org/dev/peps/pep-0561/ .
2018-05-02 12:13:26 -07:00
Eeshan Garg
4458276801
requirements: Remove runtime dependency on mock.
...
The zulip and zulip_botserver packages specify mock as a runtime
dependency, which is only needed for testing during development.
So, it made more sense to move it to requirements.txt so that
it can be installed by ./tools/provision during development.
2018-01-09 17:01:16 -03:30
Robert Hönig
06c5904347
Add 'mock' requirement for zulip and zulip_botserver.
...
These packages depend on mock. Previously, that dependency
was satisfied "by chance" because zulip_bots happened to
install 'mock'.
2018-01-06 16:39:52 +01:00
derAnfaenger
623557d189
zulip: Install all example scripts in the package's dir.
2017-09-14 04:46:13 -07:00
derAnfaenger
2f044b44bd
zulip: Move examples to zulip/examples.
2017-09-14 04:46:13 -07:00
derAnfaenger
2f62507987
api: Add script to print path of examples directory.
...
Partially fixes #92 .
2017-09-14 04:46:13 -07:00
derAnfaenger
ae4bf8bbf4
zulip: Store examples in the package's directory.
2017-09-14 04:46:13 -07:00
derAnfaenger
631c64ca6c
zulip: Move from simplejson to json.
...
This removes the simplejson dependency.
2017-09-14 02:26:56 -07:00
derAnfaenger
fb2aff4611
zulip package: Add unittest
...
As the first unittest, this creates a test directory and
abnd adds it tho the excluded pip package files.
There are two `tests` directories now, one in zulip_botserver and one in
zulip. This confuses the unittest runner, leading to failed test imports.
Therefore, we need to tell the package importer that there are multiple
tests directories, all of which should be considered for a search.
2017-09-12 01:27:09 -07:00
derAnfaenger
b585bd2dfa
zulip setup.py: Remove redundant directory forward slash.
...
The slash caused pip install ./zulip to fail on Windows with
Python 3.5.
2017-09-06 09:01:22 +02:00
Eeshan Garg
3d0f7955b6
api: Move the API package to a dedicated subdirectory.
...
In order to keep all three packages (zulip, zulip_bots,
zulip_botserver) in the same repo, all package files must now
be nested one level deeper.
For instance, python-zulip-api/zulip_bots/zulip_bots/bots/, instead
of python-zulip-api/zulip_bots/bots/.
2017-07-18 02:20:32 -02:30