Commit Graph

256 Commits

Author SHA1 Message Date
Bert Blommers
1fc09b5863
Prep release 2.0.7 (#3920)
* Temporarily downgrade werkzeug until we fix the tests

* ChangeLog for release 2.0.7
2021-05-12 08:55:50 +01:00
Matthew Davis
f5e3cd891f
fix MarkupSafe and Jinja2 dependency (#3876) 2021-04-24 13:24:32 +01:00
David Baumgold
3af87963d1
Py3: use unittest.mock instead of mock (#3481)
* Py3: use unittest.mock instead of mock

* noqa

* oops

* just pull in patch()

* ignore RuntimeError when stopping patch

* ignore RuntimeError from default_session_mock.stop()
2021-04-06 10:22:42 +01:00
Bert Blommers
b01c58785b
#3833 - Set upper bound for dependency decorator (Py2) (#3834) 2021-04-02 14:17:22 +01:00
Bert Blommers
d075219637
Pin RSA dependency for Py2 (#3697) 2021-02-16 09:50:06 +00:00
Bert Blommers
d7b8419791
Fix Mock 4.0.3 compatibility - Unpatch only once during teardown (#3541)
* #3535 - Unpatch only once during teardown

* EnvVar patching - Fix Python2 bug

* Allow latest version of mock-library
2021-02-15 08:42:16 +00:00
Anders Kaseorg
6ecf050228
Use environment markers for Python 2 dependency pins (#3618)
PyPI does not run setup.py separately for each Python version to
resolve requirements, so these conditional requirements need to be
properly specified in the metadata, not in code.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2021-01-28 14:16:20 +00:00
Bert Blommers
d7f218bfec
Pin sshpubkeys dependency to last version to support Py2 (#3614) 2021-01-25 08:21:13 +00:00
Dave Randall
d2b751e22d
Bump cryptography library (#3580)
From Python Safety:

Cryptography 3.3 no longer allows loading of finite field Diffie-Hellman parameters of less than 512 bits in length. This change is to conform with an upcoming OpenSSL release that no longer supports smaller sizes. These keys were already wildly insecure and should not have been used in any application outside of testing.
2021-01-09 10:46:09 +00:00
Bert Blommers
9ecea2012a
Fix Blockchain to work with new API (#3575)
* Fix Blockchain to work with new API

* Improve Lambda->SQS error handling
2021-01-07 11:18:50 +00:00
Brian Pandola
ae85c539fd Remove boto package dependency
The `boto` library (long ago superseded by `boto3`) has not had an official
release in over two years or even a commit in the last 18 months.  Importing
the package (or indirectly importing it by via `moto`) generates a deprecation
warning.  Additionally, an ever-increasing number of `moto` users who have
left `boto` behind for `boto3` are still being forced to install `boto`.

This commit vendors a very small subset of the `boto` library--only the code
required by `moto` to run--into the /packages subdirectory.  A README file
is included explaining the origin of the files and a recommendation for how
they can be removed entirely in a future release.

NOTE: Users of `boto` will still be able to use `moto` after this is merged.

closes #2978
closes #3013
closes #3170
closes #3418

relates to #2950
2020-11-26 23:59:15 -08:00
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +01:00
Steve Pulec
ce60e9e3b8
Merge pull request #3314 from bblommers/dependency-test
List dependencies for services - add integration test
2020-09-23 07:07:31 -05:00
Leo Sutic
cc0bd5213f
Enable CORS from everywhere using flask-cors. (#3316)
Co-authored-by: Leo Sutic <leo.sutic@matterport.com>
2020-09-19 10:07:17 +01:00
Bert Blommers
db1d7123f6 List dependencies for services - add integration test to verify 2020-09-13 16:08:23 +01:00
Steve Pulec
ed96681078 Revert dependency cleanup for now. See #3290. 2020-09-08 20:33:03 -05:00
Bert Blommers
9232cc7ba0 #3290 - Add additional dependencies in extras_require 2020-09-08 02:47:44 -07:00
Sławek Ehlert
49b12ab7f5 First stab at extracting deps in setup.py to extras 2020-09-03 09:23:53 +01:00
Ciaran Evans
3b06ce689e
Address SFN.Client.exceptions.ExecutionAlreadyExists Not implemented (#3263)
* Add check for existing execution, fix issue with make init

* Remove f-string usage

* Remove fstring usage in test

* Pin black and run formatting on test_stepfunction

* Reverse changes made by black 20.8b1
2020-08-27 08:22:44 +01:00
Matt Bullock
029b2a9751
chore: refine python-jose dependency (#3049) 2020-06-04 14:04:53 +01:00
Michael Penkov
179f5170d4 more pins for Py2 2020-04-29 13:02:53 +09:00
Michael Penkov
4a7b5adbae relax version pins in setup.py for non-Py2 users 2020-04-29 12:38:33 +09:00
pvbouwel
0bd586eb67 Place reserved_keywords.txt not in root.
Do not use data_files in setup.py but MANIFEST.in
Otherwise some enviroments throw errors when trying
to create the data file.

This was raised in: https://github.com/spulec/moto/pull/2885#discussion_r415150276
2020-04-26 18:17:56 +01:00
Bert Blommers
6de239d6e4
Merge pull request #2885 from pvbouwel/ddb_full_parsing
DDB structured parsing
2020-04-21 07:41:20 +01:00
Michael Käufl
ad0805de0e
Add Python 3.8 to trove classifiers 2020-04-20 09:19:24 +02:00
pvbouwel
3a774ed0e0 Make sure reserved_keywords.txt is packaged with the library. 2020-04-19 17:55:00 +01:00
Laurence de Bruxelles
649b497f71 Loosen idna requirement
requests 2.23.0 allows idna<3 [1]

[1] psf/requests@c46f55b
2020-03-12 09:38:02 +00:00
Asher Foa
2e0bc1aff3 Loosen jinja2 requirement.
This allows repos consuming moto to use the latest jinaj2 2.11.x patched version (currently 2.11.1) w/o breaking moto's python 2 support.
See https://github.com/spulec/moto/pull/2776
2020-03-11 12:45:13 -07:00
Steven Davidovitz
0e489a8a28 support mock versions < 3.0.5 2020-03-10 01:11:00 -07:00
Bert Blommers
00134d2df3 Fix dependencies to versions that support Python 2 2020-02-29 09:41:06 +00:00
Asher Foa
27ce0b7ab1 Botocore no longer needs an older version of python-dateutil.
https://github.com/boto/botocore/pull/1910
https://github.com/boto/botocore/issues/1872
https://github.com/spulec/moto/pull/2570
2020-01-31 12:49:12 -08:00
Sebastian P
6dac06ed7c setup.py: Unlock use with jsondiff >1.1.2 2020-01-10 16:08:34 +01:00
gruebel
3a2abe3e95 Cap python-dateutil to 2.8.0 2019-11-16 15:04:48 +01:00
George Hickman
9e4860ccd8 Add Documentation URL (#2499)
This adds a [Documentation URL](https://packaging.python.org/guides/distributing-packages-using-setuptools/#project-urls), which will display in the left-hand nav of the projects PyPI page, allowing users arriving there to get to the documentation slightly faster.
2019-10-22 12:31:48 -07:00
Mike Grima
188969a048 AWS Config Aggregator support
- Added support for the following APIs:
	- put_configuration_aggregator
	- describe_configuration_aggregators
	- delete_configuration_aggregator
	- put_aggregation_authorization
	- describe_aggregation_authorizations
	- delete_aggregation_authorization
2019-08-19 15:50:19 -07:00
Steve Pulec
9346a999d8 Force minimum version of cfn-lint. Closes #2336. 2019-07-25 21:29:56 -05:00
Steve Pulec
e4ed14b131
Merge pull request #2297 from yan12125/patch-2
setup.py: remove unnecessary 'datetime' entry
2019-07-15 20:49:23 -05:00
Asher Foa
4a87bdf1f3 Update supported python versions, add badages. 2019-07-13 13:16:12 -07:00
Chih-Hsuan Yen
92bf8eff12
setup.py: remove unnecessary 'datetime' entry
This entry is added in [1]. New statements in [1] use the built-in datetime module, which is available since Python 2.3 [2]. On the other hand, when running `pip install moto`, pip installs Zope Datetime module [3], which is unnecessary.

[1] ed93821621
[2] https://docs.python.org/2.7/library/datetime.html
[3] https://pypi.org/project/DateTime/
2019-07-12 11:48:07 +08:00
Steve Pulec
1cbfa4a4ae
Merge pull request #1886 from jonafato/python-versions
Add Python 3.7 support, remove Python 3.3 support
2019-07-07 22:49:36 -05:00
mattsb42-aws
d3495e408e bump PyYAML minimum version to address https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-18342 2019-07-03 14:48:07 -07:00
Steve Pulec
35e7f1b4e9 Remove pyyaml pin. CC #2271. 2019-07-01 20:47:02 -05:00
Steve Pulec
6fa51ac3b4 Setup pypi automatic publishing. 2019-06-30 22:31:21 -05:00
Juan Martinez
ed93821621 Set ECR imagePushedAt to current date and time (#2229) 2019-06-06 13:34:10 +01:00
Daniel Miranda
fb2a76fd66 ec2: add support for creation and importing of real SSH keys (#2108)
* ec2: add support for creation and importing of real SSH keys

* setup: lock PyYAML version to avoid incompatibilities
2019-05-25 11:17:52 +01:00
Steve Pulec
036d6a8698 1.3.8 2019-04-22 19:23:45 -05:00
Dan Palmer
e28bcf20ea
Bump Jinja2 to >=2.10.1, addresses CVE-2019-10906
Given how moto is intended to be used, and how it uses Jinja2, [CVE-2019-10906](https://nvd.nist.gov/vuln/detail/CVE-2019-10906) is unlikely to affect many users, but we should use a secure version anyway just in case moto is being used in unforeseen ways.
2019-04-15 10:48:55 +01:00
Chih-Hsuan Yen
7b7cf5bd11
Bump idna to 2.8
requests 2.21.0 allows idna 2.8 [1]

[1] 8761e9736f
2019-03-01 17:14:18 +08:00
Mike Grima
1a36c0c377 IAM Role Tagging support 2019-01-31 17:37:26 -08:00
Jon Banafato
4c605ba403 Add Python 3.7 support, remove Python 3.3 support
As of #1733, Python 3.7 is supported, so reflect that in the Trove
classifiers.

As of 2017-09-29, Python 3.3 is end-of-life and no longer receives
updates of any kind (including security fixes), so remove it from the
list of supported versions.
2018-12-29 13:38:04 -05:00