mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
# Problem # The `.whl` available on PyPi for this repository contains its entire `tests` submodule. The total size of the `pygithub` module is less than `1mb` without tests and `>23mb` with. Previous discussions on this topic indicated the removal of tests would be accepted if someone created a pull request to do so: https://github.com/PyGithub/PyGithub/issues/672 This is that pull request! 😄 # Solution/Implementation # - Moved "tests" to root of the repository ( outside the package ) - Added `tests.` module path to the imports in `AllTests.py` - Updated `setup.py` - Removed `package_data` from product - Removed "tests" from packages definition - Repointed `test_suite` to new location - Updated `travis.yml` - Added conditional ( if not `py2.7` ) conversion of code to `py3` _... apologies for all the failed build spam below - new to working with Travis CI / had some gotcha moments!_
22 lines
1.8 KiB
Plaintext
22 lines
1.8 KiB
Plaintext
https
|
|
POST
|
|
api.github.com
|
|
None
|
|
/orgs/BeaverSoftware/hooks
|
|
{'Content-Type': 'application/json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
|
{"active": false, "config": {"url": "http://foobar.com"}, "name": "web", "events": ["fork"]}
|
|
200
|
|
[('status', '200 Ok'), ('x-ratelimit-remaining', '4997'), ('content-length', '298'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('x-ratelimit-limit', '5000'), ('etag', '"c3b371e4de1a0ec350b3fcc0c458e0f9"'), ('date', 'Sat, 19 May 2012 06:01:45 GMT'), ('content-type', 'application/json; charset=utf-8'), ('location', 'https://api.github.com/orgs/BeaverSoftware/hooks/257993')]
|
|
{"updated_at":"2012-05-19T06:01:45Z","last_response":{"status":"unused","message":null,"code":null},"events":["fork"],"url":"https://api.github.com/orgs/BeaverSoftware/hooks/257993","active":false,"name":"web","config":{"url":"http://foobar.com"},"id":257993,"created_at":"2012-05-19T06:01:45Z"}
|
|
|
|
https
|
|
PATCH
|
|
api.github.com
|
|
None
|
|
/orgs/BeaverSoftware/hooks/257993
|
|
{'Content-Type': 'application/json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
|
{"active": true, "config": {"url": "http://barfoo.com"}, "name": "mobile", "events": ["spoon"]}
|
|
200
|
|
[('status', '200 Ok'), ('x-ratelimit-remaining', '4965'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('x-ratelimit-limit', '5000'), ('etag', '"d41d8cd98f00b204e9800998ecf8427e"'), ('date', 'Sat, 19 May 2012 07:26:55 GMT')]
|
|
{"updated_at":"2012-05-19T06:01:45Z","last_response":{"status":"unused","message":null,"code":null},"events":["spoon"],"url":"https://api.github.com/orgs/BeaverSoftware/hooks/257993","active":true,"name":"mobile","config":{"url":"http://barfoo.com"},"id":257993,"created_at":"2012-05-19T06:01:45Z"}
|